Posted by kenorb on April 11, 2012 at 9:05am
6 followers
| Project: | ImageAPI |
| Version: | 6.x-1.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
It happens sometimes when uploading the images.
See the screenshot.
The code:
<?php
function imageapi_image_scale(&$image, $width = NULL, $height = NULL, $upscale = FALSE) {
$aspect = $image->info['height'] / $image->info['width'];
?>| Attachment | Size |
|---|---|
| Picture 19.png | 62.75 KB |
Comments
#1
Please Help me to fix this problem....It's urgent....Please......
#2
Try to install the php5-gd package on your server.
It worked for me.
#3
GD is already installed on my system. I transferred my files from development to production environment.
Both the environment are same but somehow uploading image showing an error " warning: Division by zero in /web/thecabin.net/htdocs/sites/all/modules/contrib/imageapi/imageapi.module on line 221."
Please help me in this.
Thanks in advance