symphonycms / jit_image_manipulation

Just in Time Image Manipulation for Symphony CMS
http://symphonyextensions.com/extensions/jit_image_manipulation/
Other
25 stars 42 forks source link

Division by zero #157

Open wdebusschere opened 7 years ago

wdebusschere commented 7 years ago

<img src="{$root}/image/2/500/0/5/images/1.png" /> OK

<img src="{$root}/image/2/500/0/5/images/1.png" /> Division by zero 500/0 parameter is very handy when displaying images in a lightbox

An error occurred in /Users/xxx/Sites/symphony/extensions/jit_image_manipulation/filters/filter.resizeandcrop.php around line 56 $dst_r = ($settings['meta']['width'] / $settings['meta']['height']);

In jit 1.44 this works perfect, in 2.00 not anymore

nitriques commented 7 years ago

2.0 is not stable right now. Sorry. I'll fix it ASAP. Can you try the ìntegration branch ?