[Digikam-users] png->jpg?

Mikolaj Machowski mikmach at wp.pl
Sun May 20 18:16:47 BST 2007


Dnia niedziela 20 maj 2007, Peter Gustafson napisaƂ:
> Hi Thorsten,
>
> There may be a way within digikam, however outside it is really easy.
> At the command line from within the folder (bash shell):
>
> for a in *png; do b=`basename ${a} .png`; convert $a ${b}.jpg; done
>
> You can set jpg quality.  To find out how: man convert

Complete off-topic but:

1. ImageMagick has mogrify tool, with that everything is simpler::

	mogrify -format jpg -sampling-factor 1x1 -quality 90 *.png

2. Even with shell way (mogrify can only put output files in the same
   directory) you don't have to play with backticks, just
   convert command::

	convert $a ${a%.png}.jpg

m.




More information about the Digikam-users mailing list