On Wed Aug 12 11:02:53 PDT 2009, I found in archives that Torquil Macdonald
Sørensen asked:

> Hi all!

> Does anybody know if the command "convert 1.jpg 1.pdf" does a lossy
> transformation on the image data?

Hi all,

The behaviour of convert before a recent upgrade of ImageMagick (Oct 10 2009
on my Mandriva 2008.1 distribution) was to insert a jpeg image into a pdf
without any  decoding and re-encoding. So, it was then possible to extract
*exactly the same* file with the "pdfimages -j" command provided by
xpdf-tools. (The one provided by beeper doesn't work.) Since this upgrade, i
don't find the way to do the same thing, even playing with "quality" or
other options. :-(

> I would like to create PDFs from JPGs without loosing any information.

As answered by you, I now use pdflatex successfully. This is very easy with
the following simple code example (In my case, one image a few smaller than
A4 format by page):

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{minimal}
\usepackage{graphicx}
\usepackage[papersize={586.9pt,835.5pt},margin=0pt]{geometry}
\setlength{\parindent}{0pt}
\newcommand{\IM}[1]{\includegraphics[scale=1.0]{#1}\clearpage}

\begin{document}

\IM{01.jpg}
\IM{02.png}
...
\IM{59.png}
\IM{60.jpg}

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I think this is a bug of new ImageMagick versions that have forgotten the
simplest way to do this simple work it could do some monthes ago.
Thank you to anybody who could report this bug in the right place if it is
not here, or could fix it.

GC




_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to