LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-27-2013, 05:47 PM   #1
MirceaKitsune
Member
 
Registered: May 2009
Distribution: Manjaro
Posts: 156

Rep: Reputation: 1
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?
 
Old 06-27-2013, 06:23 PM   #2
jal
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 06-27-2013, 06:43 PM   #3
MirceaKitsune
Member
 
Registered: May 2009
Distribution: Manjaro
Posts: 156

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jal View Post
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?
 
Old 07-01-2013, 12:05 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,414

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Well, you can use stat to get/record timestamps etc and touch to fiddle with them on a new file.
http://linux.die.net/man/1/stat
http://linux.die.net/man/1/touch
 
Old 07-01-2013, 01:07 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
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.
 
Old 07-01-2013, 01:41 AM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
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.
 
Old 07-01-2013, 01:43 AM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nautilus: changing the appearance of the 'date modified' column? apeekaboo Linux - Software 1 09-23-2011 04:36 AM
Rotate Image (Script) without changing "modified" date tg0000 Linux - General 2 11-20-2010 03:32 AM
need help - script to display modified date&time of files Pawang Linux - General 3 06-01-2010 03:40 AM
Any command-line tools which can edit EXIF image data? neocookie Linux - Software 1 01-27-2005 12:23 PM
Any programs to rename a image to it's EXIF date ? CRego3D Linux - Software 1 11-08-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration