To choose a exact type from the PNG series and color control

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
niha

To choose a exact type from the PNG series and color control

Post by niha »

Hi guys,

I assumed all of you reading this had some experienced with the "Save for Web & Devices" option offered by Adobe PhotoShop.

Erm, inside that option, there something like choose to save to file format to be saved with ( Optimized File Format" on the tooltip ), there are 5 file formats : GIF/PNG8/PNG24/JPG/WBMP, as I did this command "identify -list format", and sure that ImageMagick support all the 5, but, how to convert exactly from someFile.jpg to PNG8 or PNG24 ?? Coz the file format stay still .png.

Thanks for reading.

P.S :

And, in the Color Table, there's a list of colors using in the picture where we can delete/map to transparent/lock...etc, I would like to know if using ImageMagicK I could retreive the colors using in the picture and the RGB information of that color ( just like PhotoShop ? ). Thanks again :).
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: To choose a exact type from the PNG series and color control

Post by anthony »

You are not making a lot of sense.

Generally to convert an image you do

Code: Select all

convert    someFile.jpg     someFile.png
or for a specific sub-format

Code: Select all

convert    someFile.jpg     PNG8:someFile.png
The filename will still be 'png' but internally the data is stored in a different (more restrictive) way.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply