png->jpg?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

png->jpg?

Bugzilla from thorsten.schnebeck@gmx.net
Hi,

is there a simple way to convert a folder of png photos to jpg per batch?

Bye

  Thorsten
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: png->jpg?

gustafson
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

Pete





Thorsten Schnebeck wrote:

> Hi,
>
> is there a simple way to convert a folder of png photos to jpg per batch?
>
> Bye
>
>   Thorsten
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: png->jpg?

Gilles Caulier-4
In reply to this post by Bugzilla from thorsten.schnebeck@gmx.net
Thorsten,

In digiKam, use the kipi-plugin Batch converter witch use ImageMagick "convert" program. The JPEG Quality settings can be adjusted...

http://digikam3rdparty.free.fr/Screenshots/kipibatchconverter.png

The plugin is available from "Tools/Batch Processes/Convert Images"

Gilles Culaier

2007/5/20, Thorsten Schnebeck <[hidden email]>:
Hi,

is there a simple way to convert a folder of png photos to jpg per batch?

Bye

  Thorsten
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: png->jpg?

Bugzilla from thorsten.schnebeck@gmx.net
Am Sonntag 20 Mai 2007 schrieb Gilles Caulier:
> Thorsten,
>
> In digiKam, use the kipi-plugin Batch converter witch use ImageMagick
> "convert" program. The JPEG Quality settings can be adjusted...
>
> http://digikam3rdparty.free.fr/Screenshots/kipibatchconverter.png
>
> The plugin is available from "Tools/Batch Processes/Convert Images"
>
Ahh.. thats the one I was looking for! Thanks!

Maybe I suggest Oliver a cleaner wording for the German translation of this
Batch module as "Bildkonvertierung" means everything and nothing. Something
like "Formatänderung" would be much more cleaner.

Bye

  Thorsten
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: png->jpg?

Bugzilla from mikmach@wp.pl
In reply to this post by gustafson
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.

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users