[vox-tech] Changing the print resolution of JPEG images by script

Ken Bloom kabloom at ucdavis.edu
Sat Apr 9 21:02:22 PDT 2005


On Fri, Apr 08, 2005 at 03:12:38PM -0700, Henry House wrote:
> One of the more common operations that I need to do with JPEG images is to
> change their print resolution so that when printed (e.g., as included
> figures in a LaTeX document) they print at 300 dpi (for example) instead of
> 72 dpi. I have been doing this in the Gimp. This causes the JPEGs to be
> recompressed with loss of quality when the Gimp saves the files.
> 
> - Is there any ways to change the print resolution, short of editing the
>   JPEGs by hand, without recompressing them?
> 
> - Is there any utility in existance that could do this from the command
>   line? I tried the jpegtran program from libjpeg-progs in Debian, but it
>   does not seem to have this capability.

Just use the width= height= or scale= options to \includegraphics{}

for example 

\includegraphics[scale=.2]{file.jpg}

--Ken Bloom

-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ns1.livepenguin.com/pipermail/vox-tech/attachments/20050409/bc67a779/attachment.bin


More information about the vox-tech mailing list