Welcome Guest, Not a member yet? Register   Sign In
[RESOLVED] Resizing images and making thumbnails in a loop...
#9

[eluser]novarli[/eluser]
[quote author="cahva" date="1263867187"]Congratulations, you have found a bug! Smile

I did a little digging and this is a bug in the clear() method. It didnt clear "thumb_marker" so actually it did resize it but it resized it to the thumb name and after that the thumb creator overwrites it again as thumb_marker is added to "full_dst_path" when defining it. Thats why only the first one worked.

To fix the problem, add "thumb_marker" to the clear() method found in system/libries/Image_lib.php on line 108.

It should look like this:
Code:
$props = array('thumb_marker','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');

I'll post this bug to devs.[/quote]

Wow excellent ...


Messages In This Thread
[RESOLVED] Resizing images and making thumbnails in a loop... - by El Forum - 06-29-2012, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB