thatsIch wrote:
ya but I dont know where it has to be cropped xD
and while you are at it, might you explain me how that works?
I thought crop from x,y to w right and h down of the image
but why would I take the negative of the image-height as X etc?
You know where it has to be cropped because you know the width and height of the image (using [Image:W] and [Image:H]). Then you can calculate the aspect ratio, e.g. using a Calc measure. There you can determine which of the two crop settings you have to use. If you don't want to use Lua, you can store the two lines of code I posted above in variables and then set the appropriate one using !SetOption in the Calc measure that calculates the aspect ratio (using ifActions). It seems that you have lots of images, so using Lua is probably a good idea if you don't want to create a huge number of meters only to determine the correct crop settings.
The CropBorders i posted have a "5" at the end, meaning the coordinates I use are relative to the center of the image, e.g. from -imagewidth/2 to +imagewidth/2 etc. You can also use the top left corner as the origin (default) but then cutting out the right portion from the center of the image isn't as easy.
MerlinTheRed wrote:
You know where it has to be cropped because you know the width and height of the image (using [Image:W] and [Image:H]). Then you can calculate the aspect ratio, e.g. using a Calc measure. There you can determine which of the two crop settings you have to use. If you don't want to use Lua, you can store the two lines of code I posted above in variables and then set the appropriate one using !SetOption in the Calc measure that calculates the aspect ratio (using ifActions). It seems that you have lots of images, so using Lua is probably a good idea if you don't want to create a huge number of meters only to determine the correct crop settings.
The CropBorders i posted have a "5" at the end, meaning the coordinates I use are relative to the center of the image, e.g. from -imagewidth/2 to +imagewidth/2 etc. You can also use the top left corner as the origin (default) but then cutting out the right portion from the center of the image isn't as easy.
Oh I see cause of the centercenter option you need to do that, still not very intuitive reasoning. Hats off for people who understood that part in the manual xD
I'll try it, now that I understand the 5-Option maybe its easier that way =)