Welcome Guest, Not a member yet? Register   Sign In
Bug with Image_lib.php - images with new_image set with full path produce bad dest path
#1

[eluser]Helmet[/eluser]
Sorry, poorly written subject. This is the problem:

http://ellislab.com/forums/viewthread/119945/

Quote:This looks like a bug in Image_lib.php (v1.7.1)

The documentation says you can enter a full path and file name for the config option “new_image”.

In my case Image_lib.php is failing on line 1216 where imagejpeg() is trying to use the value of $full_dst_path. Where my values fed into the resize method were for example:

$config[‘source_image’] = “path/to/source/image/source_name.jpg”;
$config[‘new_image’] = “different/path/to/new/image/new_name.jpg

The value of $full_dst_path was being put together (on line 264) as

different/path/to/new/image/new_name/source_name.jpg

using the following:

$this->full_dst_path = $this->dest_folder.$filename.$this->thumb_marker.$file_ext;


Messages In This Thread
Bug with Image_lib.php - images with new_image set with full path produce bad dest path - by El Forum - 07-04-2009, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB