You are not logged in.

#1 2011-05-27 09:45:50

Proofrific
Member
Registered: 2008-01-05
Posts: 215

[Solved] Change JPEG Resolution

I'm looking for a command-line tool to change a JPEG's resolution from 72dpi to 300dpi. I *don't* want to resample (so, I think imagemagick's "convert" is out).

In particular, I have a 1200x1800 pixel image for which I want to print a 4x6" photo. So, it already has enough pixels to print at 300dpi. But, the exif information says 72dpi, and it's confusing my printer.

Thanks!

Last edited by Proofrific (2011-05-27 10:14:25)

Offline

#2 2011-05-27 10:08:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Change JPEG Resolution

Can you use a "fit to page" or similar option?

Offline

#3 2011-05-27 10:15:12

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: [Solved] Change JPEG Resolution

I found the solution. Install perl-exiftool using pacman. Then, use

exiftool -JFIF:XResolution=300 -JFIF:YResolution=300 picture.jpg

I found this solution from http://cpanforum.com/threads/9744.

Offline

Board footer

Powered by FluxBB