ICDBNavigator icon indicating copy to clipboard operation
ICDBNavigator copied to clipboard

Imagick issue when adding manufacturer

Open drjeseuss opened this issue 12 years ago • 2 comments

Using ICDB (11-21-12 latest commit) When adding a new manufacturer I received the following error: Fatal error: Uncaught exception 'ImagickException' with message 'Negative or zero image size `/var/www/ICDB/data/logos/texasinstruments'' in /var/www/ICDB/pages/settings.php:251 Stack trace: #0 /var/www/ICDB/pages/settings.php(251): Imagick->resizeimage(0, 100, 13, 0.9) #1 {main} thrown in /var/www/ICDB/pages/settings.php on line 251

The image URL entered was: http://www.ti.com/assets/en/images/homepage/ti-logo.png

I'm running PHP 5.2.4 with Imagick 6.3.7 (module 2.0.1)

drjeseuss avatar Nov 22 '12 06:11 drjeseuss

Imagick conversion is probably the weakest point of the whole project (because poorely written by me) . I can't reproduce your error, but I'll rewrtite the entire script soon. Thanks!

WallaceIT avatar Nov 22 '12 15:11 WallaceIT

I think the issue is my imagick module. I read a post that referred to a 'new' feature for module 2.1 which allows a 0 width or 0 height to auto-scale from the other dimension. Prior to 2.1 (such as my module 2.0.1) this wasn't available. I may try upgrading this if I get some time to see if it fixes the issue.

drjeseuss avatar Nov 22 '12 16:11 drjeseuss