Flip Transparent png horizontal - how far am I off?

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?".
Locked
tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Flip Transparent png horizontal - how far am I off?

Post by tapdroid »

Trying to batch flip horizontal transparent pngs.

Magick::Image input(input_file);
if (options.flip_image) {
input.flip();
}
input.resize(Magick::Geometry(image.px_width, image.px_height));
Magick::Blob blob;
input.write(&blob, "RGBA");
$ convert in.png -channel RGBA -horinotal out.png

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Flip Transparent png horizontal - how far am I off?

Post by snibgo »

I don't understand the question. If you want to flip all the files in a directory:

Code: Select all

magick mogrify -flip *
This is for v7. If you use v6, then use "mogrify" instead of "magick mogrify".
snibgo's IM pages: im.snibgo.com

tapdroid
Posts: 22
Joined: 2020-02-29T10:31:06-07:00
Authentication code: 1152

Re: Flip Transparent png horizontal - how far am I off?

Post by tapdroid »

Nevermind, was redic easy. used convert *.png -flop a1.png in a .bat, works perfectly.

Locked