Can't resize image or watermark ...

See all posts See thread Reply

Re: Can't resize image or watermark ... new!
by DJo, 16 years ago
I display $handle->log, I've got this:

system information
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- source variables
    file_src_name : DSC_0021.JPG
    file_src_name_body : DSC_0021
    file_src_name_ext : jpg
    file_src_pathname : /tmp/phpCthlLY
    file_src_mime : application/octet-stream
    file_src_size : 165268 (max= 2097152)
    file_src_error : 0
process file to /var/www/images/billets/2008-11/
- file size OK
- file mime OK : application/octet-stream
- file name body add : _billet
- file name safe format
- destination variables
    file_dst_path : /var/www/images/billets/2008-11/
    file_dst_name_body : DSC_0021_billet
    file_dst_name_ext : jpg
- no image operation, keep extension
- no auto_rename if same filename exists
- destination file details
    file_dst_name : DSC_0021_billet.jpg
    file_dst_pathname : /var/www/images/billets/2008-11/DSC_0021_billet.jpg
- no overwrite checking
- no image processing wanted
- process OK
cleanup
- delete temp file /tmp/phpCthlLY

That's strange, in my code, I ask it to resize by 500px width and tag with watermark logo, and nothing happens, I've got the image in the good folder and the good name, but with the original size ...

Could you help me ?Reply
Re: Can't resize image or watermark ... new!
by colin, 16 years ago
- file mime OK : application/octet-stream

When you use a Flash uploader, the MIME type is rewritten to application/octet-stream. The class then considers the file as not being an image, and therefore all image manipulations are deactivated.

You should use the version 0.26RC2, which offers support for files uploaded through Flash.Reply