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?".
agriz wrote:This was the example code which i found in imagemagick website.
Without using this -background LightsteelBlue, can't we achieve this effect?
Not quite sure what you're trying to do there, but with IM you can always use "none" as a color descriptor. That often works when you want transparent backgrounds, borders, etc. Maybe try "-background none".
This was the example code which i found in imagemagick website.
Without using this -background LightsteelBlue, can't we achieve this effect?
Please always provide your IM version and platform. Also an example of your input and your resulting output and explain why the command is not working the way you want. A pointer to where you found this code would also be helpful.
PNG only has one layer. So if it has transparency, then I see no need for the background or flatten, unless you want to remove the transparency. So if you want to keep the transparency, then just do
PNG supports 8-bit transparency. But GIF only supports binary transparency. So your PNG shadow will be thresholded at about 50% when saving as GIF and you will get either fully transparent part shadow and full opaque part shadow. Since your transparency is black underneath the opaque part shows as black.
No way if you keep transparency with smooth shadow. If you flatten transparent png images against some background color such as white, then the gifs will be fine.
If i use imagemagick 7.0, and if i create gif by appending few jpg images, i get the right image size
If i use imagemagick 6.7 and if i create gif by appending the same jpg images, i get the wrong image size.
Sir, if i use identify -verbose info: image.gif
//if created in 6.7 - Should be about 300
[4] => Geometry: 29x490+0+0
Is there a chance that i can change the image width and height in the image information?
So when i use php's getimagesize($image) i will get the right image size.
Please don't change topics within a post. Please create a new post in the future. IM 6.7 is ancient (over 200 versions old) and might have a bug. No way to go back to fix the bug in IM 6.7. You might be able to use EXIFTOOL to make changes to the meta data if you need to correct the image. But if IM 7 works fine, then there must have been a bug in IM 6.7.