General :: Stripping EXIF Metadata + Preserving Of The Original Date
Feb 23, 2011
I would like to remove almost all of the Privacy Evading data that a digital camera is generating, such as EXIF DATA. EXIF DATA: Camera Brand, Camera Model, Date taken, Exposure Time, Flash Fired, Focal Length, Location (if you are using iPhone with categorization by location, if enabled), Metering Mode, etc.
May you, please, write a script which does that job for multiple files?Exiv2 seem to reduce more weight than Jhead so I'll use the command exiv2.That's, generally, what I want the script to do:Retrieve the (Modified) date of a file.
I have a mess in my photos folder; I want to sort them according to date in EXIF information and rename according to the date (like 001.jpg, 002.jpg and so on).
How can I do this in Linux? I have used ImageMagick for some basic bulk processing tasks before (converting and resizing, etc), is it possible to use it for this task?
I have searched diligently but can't seem to find a way to search by exif date. Most of my searches turned up commands to manipulate EXIF data not just search by it. I have found some likely tools but suspect that I don't know enough bash to recursively find a .jpg file by it's exif date. For example, exiprobe and exifgrep look promising (see examples below).
I have made some progress. At first, I couldn't associate the file name with the date given but learned that the "n" option forces each output line to start with the file name. Now, I need to make the command recurse but can't seem to manage it. halloween_IMG_0965.JPG: JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2009:10:31 20:58:52 If it helps, I have linked to the man pages [URL]
I've tried what feels like at least a dozen different image viewers and I'm still hunting for one that handles viewing by date taken. The trick is that I'd like to just click the jpeg as they come off the camera and then browse through all the photos in the order taken... without having to load them into a photo management application, sort them in their, then start viewing from there. Too many extra steps for too many pictures when you're looking at a collection that is already organized (using the file system, i.e., nested directories) back to 2000. I need (ideally) a viewer where I click the jpeg, then go next next next through them in the order in which they were taken. Does anyone know if this sort of thing exists?
In the Windows world where I came from, Irfanview freeware easily renamed a large folder of JPEG photos by EXIF time & date stamps, appending a unique number if the time and date stamps were the same. Is there an equivalent rename-by-EXIF information batch command in Ubuntu 10.04 Lucid? For example, change (based solely on EXIF information): FROM:DSC_0001.JPG TO:20110224_09:34:56am.JPG
I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.
Just to give an example: stat foo.jpg |grep Modify gives me Modify: 2010-07-12 06:28:56.890625000 -0400
Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command
I just got 512M RAM so i thought to switch off all the programs that i most likely will not need. The big ones, i think might be, gdm, gnome, metacity. I think a plain X will suit my purpose.
Everything is fine until here but after reboot the device wont mount on /orac it says special device not available i found that that md02 device is not in active state i tried deleting it and recreating it but no use still it wont persist a reboot
I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
I could understand the idea of security "if I haven't touched the file in 9 days, and the timestamp was changed, I know someone was in my system". But, is there any other purpose for preserving timestamps?
I need to copy my data from the pc to an external hard drive with keeping the attributes; so i used the command
cp -rp ~/sourceDir ~/Destination
but when i am coping it it give the error message "cp: failde to preserve ownership for 'file' : Operation not permitted and it copied the files to the destination but the attributes has changed from
-rw-r--r-- to -rwxr-xr-x
I tried to copy it by loging as the root also but still the same thing happens. how to copy the files with preserving the attributes
If I have a partition like /dev/hd1 that is unencrypted and want it to be encrypted, but want to keep everything currently in that partition, how can I do that?
I'm searching for a tutorial on how to convert my videos (AVI, WMV and MKV formats) to a format that offers both good quality and small size.The audio part should be 128 kbit/s mp3 lame.I'm using Fedora 14 with an rpmfusion repo. It would be especially nice to be able to batch-convert the AVIs.
I would like to find the command that copy my eclipse options to another workspace code...
It doesn't work, and it could be source of error to write the path .metadata/.plugins manually. It certainly a better idea to create a complete script ?
dir1subdir1subdir2etc.and at the lowest level they contain all of these jpegs that I need. The problem is that I only need some of them. They're named like this:
pic1.jpg pic1_med.jpg pic1_small.jpg pic2.jpg pic2_med.jpg etc.
I want to just grab the ones without the size suffix and copy them all to another set of folders, while preserving the directory structure. The numbering all starts at 1 for each low level subdirectory, so I think that the directory structure is the only way to not get them mixed up.
I know that cp has a recursive option -r but how do I just extract the ones without the underscore? And then how do I preserve the directory structure when I move them over?
I have 70 folders as an output form some software they are called folder1, folder2 folder70. I want to find a way to automatically copy the contents from each folder to one big folder? So all the files are in one folder without the directories? I was thinking of something using the mv command but I'm not sure how to do this. Ok I think I have answered my own question. I did this:
# cp folder*/* bigfolder
I used cp in case it went wrong, it worked so I deleted the previous dir's.
I'm trying to make a webpage that will display the bash variables I have in a file. These variables are used in a bash script that is run from on my server.The file looks like this:
I have looked inside and out of KMail, and for the life of me, I cannot seem to find out how to make KMail maintain HTML formatting and keep the images when REPLYING to sender or FORWARDING an email to another or others. Does anyone know a tweak to make KMail Replies and forwards to stop convert everything to plain text and strip the images? I live in a family where we all share parody, etc. emails, and plain text rarely ever cuts it. I did not suffer such with Thunderbird.
I'm having trouble reading EXIF data from TIFF files. Both 8 bit and 16 bit fail to load EXIF data via eye of gnome and GIMP and I'm not sure why. Neither files downloaded online nor rendered from Bibble 5 seem to work. Using Ubuntu 10.04 64bit and GIMP 2.7.2.
I can find points to Tillies Garrels TLDP reference. Do I want to create my own variable to hold the string or do I want to place the string in memory? Is that my problem? Or is something different causing the 'bad substitution' error.
Whenever I try to add or update metadata from a MP3 file, Audacious gives the message "Metadata updating failed".I use Ubuntu (9.10) and installed Audacious (2.1.0) from the Ubuntu Software Center.Does anybody know what causes this or how I can find out what the problem is...
i am trying to install the rhel 6 using virtual machine(virtual box ) and iam getting the error as "Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated.Cannot retrieve repository metadata (repomd.xml) for repository:naconda-base-201009221732.i386."i would also like to know what is the reason for this error , i try to goggle it and seems most ppl are facing the same issue and they are directing to some mailing list like rhn-satellite can some somebody can explain what is that mail listing and how we can use the mail listing to dig information
I'm looking for a method for modifying some jpg photo files last modification date with the corresponding timestamp creation date of each file.The reason is that shotwell import pictures in folders according to last modification date which is stupid on my opinion.