On Fri, 25 Sep 2009 10:19:47 -0700
Fred Weinhaus <[email protected]> wrote:

| You may be able to use mogrify to process each image in one folder 
| and place it with the same name in a second folder. Something like
| 
| create second empty folder
| cd to first folder where your images are located
| 
| mogrify -path /fullpathto/secondfolder -format png -background white 
| -flatten *.png
| 
| I am not sure that mogrify will allow -flatten. If not, then you will 
| need to write a script to loop over each image and use convert
| 
| convert infile.png -background white -flatten infile.png
| 
Sorry -flatten is not usable from mogrify...

use
       -bordercolor white  -border 0
instead

However as Fred points out PNG's may be saved in a slightly different
PNG sub-format, especially as you are effectively removing the images
transparency.

However and PNG is non-lossy, you should not degradet he image in any
way, unless you attempt to save as a PNG8: (color table) sub-format.



  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
    SPACE FOR THIS INSERTION IS DONATED BY THE PUBLISHERS AS
    A SERVICE TO THE COMMUNITY      -- John Brunner - "The Sheep Look Up"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to