Search found 5 matches

by lockywolf
2019-09-22T03:26:27-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 10688

Re: Howdo I make +distort affine preserve virtual pixels?

No, this solution also doesn't work.

A counterexample would be trivial: just give negative pixel values to "-splice", say "-10x-10", and convert refuses to move the image.
by lockywolf
2019-09-22T00:32:31-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 10688

Re: Howdo I make +distort affine preserve virtual pixels?

I seem to have nailed it. The actual code needed is the following: convert rogers.png -alpha set -virtual-pixel transparent +distort affine "1,1 1,1 1,50 1,50 50,1 50,50" -background transparent -splice "50x50" output.png I am completely confused why exactly the same thing is called "virtual pixels ...
by lockywolf
2019-09-22T00:01:42-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 10688

Re: Howdo I make +distort affine preserve virtual pixels?

Look, seriously, I appreciate your help. But when I use "+distort affine", it's not because I want to abuse it, or because I am too lazy to read the documentation. I do read it, I just don't understand it. I use "+distort affine", because I actually need an affine distortion -- that is an affine ...
by lockywolf
2019-09-21T20:06:06-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 10688

Re: Howdo I make +distort affine preserve virtual pixels?

You might use the minus form of distort. The minus form of distort doesn't enlarge the canvas. I want to move the picture's top left corner from 1,1 to 50,50, extend the canvas to fit the image (become imsizeX+50,imsizeY+50) (hence the + form of distort) and pad with transparency. https://imagizer ...
by lockywolf
2019-09-21T08:08:01-07:00
Forum: Users
Topic: Howdo I make +distort affine preserve virtual pixels?
Replies: 7
Views: 10688

Howdo I make +distort affine preserve virtual pixels?

Hello, everyone. I am running the following command: convert rogers.png -alpha set -virtual-pixel transparent +distort affine "1,1 50,50 1,50 50,100 50,1 100,50" output.png I expect the image to be shifted by 50 pixels down and right, and the image to be padded with transparent ones. However, this ...