Search found 2 matches

by Oli414
2018-06-30T07:33:12-07:00
Forum: Users
Topic: Trim image and output trim amount
Replies: 3
Views: 2435

Re: Trim image and output trim amount

Thanks, that's all I needed!

Code: Select all

magick in.png -trim -format "%[fx:page.width/2 - page.x] %[fx:page.height/2 - page.y]" -write info: out.png
Allows to get me the untrimmed image's center within the newly trimmed image.
by Oli414
2018-06-30T07:03:14-07:00
Forum: Users
Topic: Trim image and output trim amount
Replies: 3
Views: 2435

Trim image and output trim amount

I'm trying to trim an image and output the trim amount, So far I'm testing with: magick in.png -trim out.png But I'm already getting stuck when trying to both output some info, and output an image in the same command: magick in.png -trim -format "Hello World" info:- out.png Which won't wor...