[eluser]Sven Delle[/eluser]
I've got a (fairly) highres image I wanna upload (and use with a lightbox solution of some kind). And from that image I want to create a smaller version that is used in a gallery. And on top of that I want to create a small thumbnail for use as, erhm, thumbnail.
As far as I understand the Image Lib, you can target the source image for manipulation, or; you can create a copy, and (or) you can create a thumbnail at the same time.
Now, if I do this:
Code:
$config['image_library'] = 'gd2';
$config['source_image'] = 'new_images/' . $_FILES['userfile']['name'];
$config['new_image'] = 'new_images/s_' . $_FILES['userfile']['name']; // smaller version based on height set below
$config['create_thumb'] = TRUE; // this creates the _thumb suffix file
$config['maintain_ratio'] = TRUE;
$config['master_dim'] = 'height';
$config['width'] = 200;
$config['height'] = 300;
I get a file with a prefix of s_ and a [name] suffix of _thumb as in s_filename_thumb.jpg!
Now, what I would expect as a user is a smaller image file with a prefix of s_ and ANOTHER THUMBNAIL file with a [name] suffix of _thumb - as in s_filename.jpg and filename_thumb.jpg - AND the ability to controls the thumbnail size just like I'd do the new_image version.
I find it hard to see how the thumbnail creation enters the picture and has ANY value if that is not the way it works. Am I missing some obvious properties, or?