ImageMagick and PSD images with layers

If you try to convert a PSD image with layers to a web format like PNG using ImageMagick, you’ll get a PNG image for each layer and that’s probably not what you want.

Here’s the -flatten option that helps you:

find . -name *.psd -exec convert '{}' -flatten \
`basename '{}' .psd`.png \;

Et voilà. A bunch of PSD images ready for uploading into MediaWiki using PyWikipediaBot.

Pubblicato da

Stefano Costa

Archaeologist, I study the Late Antique and Early Medieval/Byzantine period on the northern side of the Mediterranean, focusing on pottery usage patterns. I'm also involved in open source and open knowledge communities, like OSGeo, the IOSA project and the Open Knowledge Foundation.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.