[eluser]Unknown[/eluser]
It would also be good to note that $this->image_lib->clear() DOES NOT clear all the properties of the image lib object.
function clear()
{
$props = array('source_folder', 'dest_folder', 'source_image', 'full_src_path', 'full_dst_path', 'new_image', 'image_type', 'size_str', 'quality', 'orig_width', 'orig_height', 'rotation_angle', 'x_axis', 'y_axis', 'create_fnc', 'copy_fnc', 'wm_overlay_path', 'wm_use_truetype', 'dynamic_output', 'wm_font_size', 'wm_text', 'wm_vrt_alignment', 'wm_hor_alignment', 'wm_padding', 'wm_hor_offset', 'wm_vrt_offset', 'wm_font_color', 'wm_use_drop_shadow', 'wm_shadow_color', 'wm_shadow_distance', 'wm_opacity');
foreach ($props as $val)
{
$this->$val = '';
}
// special consideration for master_dim
$this->master_dim = 'auto';
}
I had an issue with batch processing where the height was getting auto resized based on a 500px width and the proportions were off because the height was not getting cleared since its not included in the clear method. I had to reset the property manually using by writing:
$this->image_lib->height = '';
Once I did this and reset the other values not cleared by that method the loop finally worked for me. Let me know if I should submit a bug for this.