Search found 6 matches

by av01d
2017-11-23T05:26:13-07:00
Forum: MagickWand for PHP
Topic: Transparent colour goes black when png/gif resized and conve
Replies: 11
Views: 58878

Re: Transparent colour goes black when png/gif resized and conve

I know this is an ancient thread, but I came here via Google, so others might as well.
Here's how to do this in recent versions of IM:

Code: Select all

convert image.png -background white -alpha remove -resize 50% image.jpg
by av01d
2015-07-31T01:08:33-07:00
Forum: Developers
Topic: Merging 2 gifs, one is animated and transparent
Replies: 19
Views: 34172

Re: Merging 2 gifs, one is animated and transparent

I managed to figure it out myself:

Code: Select all

convert background.jpg null: \( smallAnim.gif -coalesce \) -geometry +150+125 -layers Composite -layers Optimize output.gif
Works like a charm. Is this indeed what I should be using?

The suggestion made by snibgo (thanks!) does not seem to work for me...
by av01d
2015-07-31T00:34:15-07:00
Forum: Developers
Topic: Merging 2 gifs, one is animated and transparent
Replies: 19
Views: 34172

Re: Merging 2 gifs, one is animated and transparent

Reviving an old thread... I have a question similar to what was asked above. I have a JPEG image of say 400x300px. I have a small animated GIF of say 100x50px. I want to overlay the animated GIF over the JPG, which should result in an animated GIF. The GIF should have the same width/height as the JP...
by av01d
2013-10-04T00:33:09-07:00
Forum: Users
Topic: Rotate image around center, without cropping
Replies: 9
Views: 9963

Re: Rotate image around center, without cropping

Turns out my problem had nothing to do with convert... Users can rotate text on an image in their browser. I use CSS3 transforms for that (which rotates at the center). Then I send the x,y coordinates of the text on the image, as well as the angle to the server. On the server, the text is 'composed'...
by av01d
2013-10-03T04:58:50-07:00
Forum: Users
Topic: Rotate image around center, without cropping
Replies: 9
Views: 9963

Rotate image around center, without cropping

I'd like to rotate an image around its center. The docs say you can use -distort for this: convert [inFile] -distort ScaleRotateTranslate 30 [outFile] This indeed works, but it also "crops" the image (actually, it retains the original image size). I would like to "grow" the canvas to fit the rotated...
by av01d
2013-10-02T03:30:12-07:00
Forum: Bugs
Topic: frame_edge script not working
Replies: 2
Views: 2220

frame_edge script not working

It seems that the frame_edges script no longer works on newer versions of ImageMagick. I recently upgraded from version 6.5.7-5 to 6.8.1-10. Now the frame_edges shell script generates images with empty borders. Could someone take a look at the frame_edges script, and hopefully tell me what I need to...