Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-27-2013, 05:47 PM
|
#1
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Rep:
|
Resize image without changing date modified, exif tags & camera data
Hello there. I'm looking for a quick and easy way to resize photos I took with my Android device (change their resolution). While I know to do this easily using GIMP, I'm looking to do it without changing file properties and metadata. That includes camera information, exif tags, and most importantly the date modified field.
Is there a way (either with GIMP or a console command) to change the resolution of jpg images without touching the "date modified", exif tags, and camera information?
|
|
|
06-27-2013, 06:23 PM
|
#2
|
LQ Newbie
Registered: Jun 2011
Posts: 7
Rep:
|
ImageMagick might be what you're looking for.
It will resize from the command line without altering the meta-data, however you'll need to specify a new output file, which will have a different size, current time stamp etc.
|
|
|
06-27-2013, 06:43 PM
|
#3
|
Member
Registered: May 2009
Distribution: Manjaro
Posts: 156
Original Poster
Rep:
|
Quote:
Originally Posted by jal
ImageMagick might be what you're looking for.
It will resize from the command line without altering the meta-data, however you'll need to specify a new output file, which will have a different size, current time stamp etc.
|
ImageMagik doesn't seem to exist in my software packages (openSUSE repositories for me).
Anyway, I'm thinking about something else too, that I could use in other circumstances apart from images if needed: Maybe I could instead use a program that can import and export the metadata of files? So I may export the date modified, exif tags, camera data, etc. from any file to a text file, then after editing and saving it as a new jpg applying the old metadata to it. Does such a tool exist by default in Linux?
|
|
|
07-01-2013, 01:07 AM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
exiv2 is a great commandline program for playing with exif metadata. One other nice feature it has is the ability to set the file modification time to whatever the timestamp is in the exif data.
Evo2.
|
|
|
07-01-2013, 01:41 AM
|
#6
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
Seems like a reasonable way to approach this would be to first dump the original image EXIF data to a file, modify the image as you want, and then dump the EXIF data from the modified image to a second file. Do a diff on the two files and figure out which EXIF fields in the modified image you need to set back to the original data. Then use an EXIF editor to reset those fields.
I just did a quick search on Google for "linux exif editor" and it came back with many hits. I followed one link to a YouTube video, http://www.youtube.com/watch?v=K9PAD7GqUag , and you can see a tutorial on how to do these type of operations using a tool named "exiftool". There were many other hits from Google that I did not pursue.
|
|
|
07-01-2013, 01:43 AM
|
#7
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
Here's a Wiki link comparing various EXIF editors. Many are for Windows, but there are some for Linux mixed in there (including the "exiftool" I mentioned above).
http://en.wikipedia.org/wiki/Compari...tadata_editors
|
|
|
All times are GMT -5. The time now is 01:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|