I'm successfully making thumbnails on the fly with this ultimate statement:
imagejpeg($image_resized, '', 80);
Now I want to save the file, which is the 2nd parameter. I can output and save at the same time right? The php manual says OR, but maybe that's not correct.
Anyway, i've tried a few things.
imagejpeg($image_resized, 'pics/$dir/thumbs/$image_resized', 80);
imagejpeg($image_resized, 'pics/$dir/thumbs/$filename', 80);
Now matter what I put as the 2nd parm It kills the dynamic thumbnailing (doesn't display the pic anymore), and it doesn't save the file.
I get no errors... just doesn't work.