image processing.php line 12 PLS HELP.
-
Hi, I am having a problem with uploading product images. It gives me error with “Fatal error: Out of memory (allocated 34078720) (tried to allocate 13056 bytes) in /homepages/7/d259763837/htdocs/wordpress/wp love-glass/wp-content/plugins/wp-e-commerce/image_processing.php on line 12“
When I go to Editing wp-e-commerce/image_processing.php it tells me it’s inactive?! I don’t know why and where I shall switch it on? And then I don’t understand what’s wrong on line 12? Could you pls have a look and help with it?!
<?php
function image_processing($image_input, $image_output, $width = null, $height = null,$imagefield=”) {
global $wpdb;
/*
* this handles all resizing of images that results in a file being saved, if no width and height is supplied, then it just copies the image
*/
$imagetype = getimagesize($image_input);
if(file_exists($image_input) && is_numeric($height) && is_numeric($width) && function_exists(‘imagecreatefrompng’) && (($height != $imagetype[1]) && ($width != $imagetype[0]))) {
switch($imagetype[2]) {
case IMAGETYPE_JPEG:
//$extension = “.jpg”;
$src_img = imagecreatefromjpeg($image_input);
$pass_imgtype = true;
break;
- The topic ‘image processing.php line 12 PLS HELP.’ is closed to new replies.