Hi. I'd like to start (my first post to the list) by saying thanks to everyone 
who makes Imagemagick what it is. It truly is one of the great OSS successes 
and I hope it continues to grow and grow!
 
 My trouble is this: I'm writing a bash script to create thumbnails for product 
images which are fixed up via the GIMP.  I use the gimp to cut out the 
background of images. Then I add a 2nd layer of background color, and save the 
file as *.XCF with a proportion of 640x480 (or the other way around.) I don't 
flatten nor do I reduce the size of the image in the gimp as I might want to 
edit it again later. I'm attempting to use convert in a shell script to 
flatten, strip, risize, and convert to jpeg. This is my current line:
 convert -resize @307200 -flatten -strip -quality 70 "$i" "${i/.xcf}.jpg"
 
 I have also tried something as simple as:
 convert foo.xcf -flatten foo.jpg
 as well as:
 convert foo.xcf -flatten -background none foo.jpg
 
 My version of IM/convert is 6.0.7.
 
 These mostly works as expected in that the cutout image from the first layer 
appears over its colored background layer...except that the cutout image 
develops a thick black line around it. This seems to develop from the partially 
transparent edge around the cutout image in the first layer.
 
 Is there a way to flatten a GIMP image that results in something similar to 
the way the GIMP does it -- that is, a smooth gradation between the edge of the 
image and complete transparency into the next layer?
 
 In my scouring of the net I came across this gem:
 "This is not PS -- it's IM." Of this fact I am aware and in agreement. But I 
still want to know, is there a way to do it "the IM way"?
 
 BTW, I've discovered that a newer version of IM/convert, used in a similar 
fashion as above, refuses to perform any "flattening" of the image at all. It 
seems merely to blacken out the transparent part of the layer containing the 
cutout of my  image and does not show the lower layer at all. So I'm not sure 
if I should upgrade quite yet or not..but any advice regarding either version 
would be much appreciated.
 
 TIA!
 
 Mike
 Nagano, Japan

                        
---------------------------------
Yahoo! Mail goes everywhere you do.  Get it on your phone.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to