Trouble with unwanted offset

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?".
Post Reply
Picklepaws
Posts: 10
Joined: 2014-07-04T11:42:38-07:00
Authentication code: 6789
Location: Canada

Trouble with unwanted offset

Post by Picklepaws »

Hi there!

I'm trying to convert an image in a few steps.
It starts off as a 580x480 image and I only need 474x474 of those pixels.
So it goes from the original image, then it gets converted with a 474x474 circular mask (so now only the pixels inside of the circle are visible).
After that, I remove some colours from the image.

I'm certain the step that causes the offsetting is the mask.

Here's my steps:

convert ORIGINAL.gif \
MASK.png \
-alpha Off \
-compose CopyOpacity \
-composite \
-trim \
OUT.png

Does anyone have any suggestions to achieve the same result without offsets? (I'm getting a 3, 3 offset.)
Last edited by Picklepaws on 2014-07-24T09:15:32-07:00, edited 1 time in total.
Picklepaws
Posts: 10
Joined: 2014-07-04T11:42:38-07:00
Authentication code: 6789
Location: Canada

Re: Trouble with unwanted offset

Post by Picklepaws »

Nevermind! I just added a +repage and that seems to have fixed it.
Post Reply