Order of Operations - Geometry

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

What command are you using?
operation ordering problems were illeminated in the version 5 to version 6
changes to commandline handling.
See basices
http://www.cit.gu.edu.au/~anthony/graph ... s/#cmdline
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Well that is the problem "composite" only has -geometry as a setting
it is not applied until the very end. use resize then use -geometry to place
the result.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You want both images rotated? or just the image that will be overlayed?

Either way I recomend you go to the "convert" command and use -composite
there, performing the rotations as needed.

Code: Select all

convert  background.img   \( overlay.img -rotate 3 \) -geometry -geometry 1596x1119+552+396 -composite  result.img
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply