Ocmod (opencart >= 2.3) with backward compatibility for getting more control at image cropping. Can be used to get image with it’s original size.
Source code: https://github.com/Freeocart/foc_image_flexible_size
Default resize logic built on scaling image by it’s minimal side and putting the result into a fixed size container.
In most cases this behaviour expected and correct, but there are two limitations:
This simple ocmod solve those problems.
Control is very simple:
You can safely enable/disable this ocmod, since Opencart translate these sizes in integers, so 0500 become 500 with disabled module.