<br><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/4 Jean-François Rabasse <span dir="ltr"><<a href="mailto:jean-francois.rabasse@wanadoo.fr" target="_blank">jean-francois.rabasse@wanadoo.fr</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Sun, 4 Nov 2012, sjoerd wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the hint in the direction of Imagemagick...converting from the<br>
commandline (convert -resize 800x600 file.jpg smallfile.jpg) gave the same<br>
result, so I looked into the installed imagemagick packages and found out that<br>
there was only a package "graphicsmagick-imagemagick-<u></u>compat" (kubuntu)<br>
installed and NOT the imagemagick itself. Still gave the convert tool though.<br>
Anyway to make a long story short: after installing imagemagick it all works<br>
fine now.<br>
</blockquote>
<br></div>
Hello,<br>
<br>
Some extra comments about the use of the ImageMagick 'convert' tool.<br>
(I use 'convert' to build my web versions of images.)<br>
<br>
1. I confirm that 'convert' always keeps image metadata in the target<br>
file, this is its default behaviour. And if and only if you wish *not<br>
to keep metadata*, you need to add a specific option :<br>
   convert file.jpg -resize '800x800>' -strip smallfile.jpg<br>
<br>
(Btw, I'll suggest you use rather the « bounding box » syntax to resize<br>
your images. With something like "-resize '800x800>'" you ensure<br>
the larger dimension of your image will be 800, be it the width or<br>
the height, and the aspect ratio will be preserved.<br>
When using explicit dimensions, "-resize 800x600", if you happen to<br>
process a portrait oriented image or an image with an aspect ratio<br>
different from 4:3 (3:2 is a common value with SLR cameras) you will<br>
get distorsions on your final image.)<br>
<br>
<br>
2. In my opinion, 'convert' also has a useful option for web usage<br>
and can produce progressive JPEG (more pleasant display for users<br>
concerned with low bandwith issues as I am:-) :<br>
   convert file.jpg -resize '800x800>' -interlace plane smallfile.jpg<br>
<br>
<br>
3. Last, you can also control the JPEG quality factor (and compression<br>
level) of your small images. The default value for 'convert' is 95%<br>
but when generating small size images, 500 to 700 pixels, you can<br>
lower to 90 or 85%, e.g. :<br>
   convert file.jpg ... -quality 90 ... smallfile.jpg<br>
and have an effective gain in output file size (typically half the size)<br>
without visible losses for screen display usage.<br>
(Smaller size means smaller disk usage on your web hosting and faster<br>
faster loading time when browsing.)<br>
The good quality value should be determined via test and look.<br>
<br></blockquote><div><br></div><div>Warning : quality = 100 is not lossless. Only JPEG used in medecine world can do that. It's patented and not implemented in opensource.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Hope these hints can help...<br>
<br>
Regards,<br>
Jean-François<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Oh and another thing....digikam resizing is very slow compared to<br>
commandline, so I'll stick to that. Also gives me an easier<br></div>
opportunity to restore the creation date of the resized file to set<div class="im"><br>
with the jhead tool :)<br>
</div></blockquote>
<br>
I confirm, command line processing is really faster, don't know why...<br>
Probably, using a small script 'my-resizing' gives maximum flexibility.<br>
One can process directories, tune options, quality, interlacing, and also<br>
perform all what 'convert' can do, adding texts, copyright, watermarking,<br>
etc.</blockquote><div><br></div><div>It use JPEG lib crop feature. Image is not decoded and re-encoded. But on JPEG support that.</div><div><br></div><div>Gilles Caulier</div></div></div>