Jump to content


Issue information

  • #035798

  • Confirmed - General

  • 4.2.1

  • -

  • 0 - None Assigned


Issue Confirmations

  • Yes (1)No (0)
Photo

Image Magick Not Creating Some Image Sizes

Posted by on 09 February 2012 - 02:06 PM

If an Image is uploaded that is smaller than the resize dimensions, that particular image is not created. As an example the small image dimension setting is 240 but the image being uploaded is 100x100

admin/applications_addon/gallery/sources/classes/gallery/image.php (line 2234)

$return = $img->resizeImage( $this->settings['gallery_size_small'], $this->settings['gallery_size_small'] );

in resizeImage() in classImageImagemagick we return early with;

	return array( 'originalWidth'  => $this->orig_dimensions['width'],
		  'originalHeight' => $this->orig_dimensions['height'],
		  'newWidth'	   => $this->orig_dimensions['width'],
		  'newHeight'	  => $this->orig_dimensions['height'],
		 'noResize'	=> true );

This means that the creation of the temp files lower down in that function never occurs.

Going back to the image helper (line 2242)

if ( $img->writeImage( $small ) )

this fails because the temporary image wasn't created

   	 if( !is_file( $this->temp_file ) )
		{
			 $this->error = 'temp_image_not_exists';
			 return false;
		}

changed status to: Confirmed - General





1 user(s) are reading this issue

0 members, 1 guests, 0 anonymous users