You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
in the current WordPress version (6.0.1), as far as I know, there is no option for "original aspect ratio" or to "calculate other dimension" for the situation when only one dimension should be limited.
I need to restrict only width for my CPT image field (500px) and not the height.
What I would expect from the plugin, would be to let me select "Pixel size", provide Width=500 and empty Height.
There is of course a problem of making the Height field optional, which could end up in someone simply omitting it by mistake. I see two possible solutions:
Leave Height as required field and allow "0" or "-1" as "resize with original aspect ratio". This could be explained in docs/changelog or as field description.
Make Height optional and if empty "resize with original aspect ratio" but add description in a way mentioned in 1.
@joppuyo let me know, what do you think. For me, it was surprising that this option isn't already present.
The text was updated successfully, but these errors were encountered:
Unfortunately this use case is not supported and that's a conscious decision.
This plugin has a main purpose to crop an image to a specific aspect ratio, the pixel size support is a secondary feature. In order to crop an image to an aspect ratio, there needs to be a width and a height, if one of these is missing, it's essentially the same as a free crop.
The only way I would envision having a feature like this (free crop with constraints) is if there's an option of defining a minimum and maximum aspect ratio, for example that the image needs to be at minimum 1x1 and at maximum 16x9. This could also work with pixel sizes, for example the minimum pixel size is 100x100 pixels and the maximum pixel size is 178x100. The user could then select a portion of the image between this minimum and maximum.
I'm currently focused on version 7.0.0 of the plugin which is a partial rewrite of the plugin so any new feature like this would have to come after that.
Hello,
in the current WordPress version (6.0.1), as far as I know, there is no option for "original aspect ratio" or to "calculate other dimension" for the situation when only one dimension should be limited.
I need to restrict only width for my CPT image field (500px) and not the height.
What I would expect from the plugin, would be to let me select "Pixel size", provide Width=500 and empty Height.
There is of course a problem of making the Height field optional, which could end up in someone simply omitting it by mistake. I see two possible solutions:
@joppuyo let me know, what do you think. For me, it was surprising that this option isn't already present.
The text was updated successfully, but these errors were encountered: