Some JPG Images

See all posts Reply

Some JPG Images new!
by Burak, 16 years, 7 months ago
Hello.
This class some time doesn't work.It say "Error in creating JPEG image from source" at upload a some photos.But my GD is working.
What can I do?Reply
Re: Some JPG Images new!
by colin, 16 years, 7 months ago
It is very possible that the images you are uploading are not JPEG images, even if the extension is a JPEG extension.

Can you post a link to one of the offending images?Reply
Re: Some JPG Images new!
by Burak, 16 years, 7 months ago
Thanks for feedback.
Example,
I can't upload this picture:
http://img2.she-ker.com/grafikti.jpg

It's very nice class but I wanna help for my script.Reply
Re: Some JPG Images new!
by colin, 16 years, 7 months ago
I tried the picture, and it works well on my setup. It is a valid JPEG image.

Can you paste here your code and the class log? Which version of the class are you using?Reply
Re: Some JPG Images new!
by Burak, 16 years, 7 months ago
I will setup 0.24 and I will try againReply
Re: Some JPG Images new!
by Burak, 16 years, 7 months ago
I use 0.24 now but It say to me "Error in creating JPEG image from source"Reply
Re: Some JPG Images new!
by colin, 16 years, 7 months ago
Please use the version 0.25RC1, that you can find here.

Also, paste here the log of the class.

You might want to check if the picture is readable by PHP. Try 777 to begin with.Reply
Re: Some JPG Images new!
by Burak, 16 years, 7 months ago
Okey. Thank you. I will use 0.25 but I have two questions.
1- Where is the log stores?
2- How do I do it 777 (readable)?It's file chmod?Reply
Re: Some JPG Images new!
by Burak, 16 years, 7 months ago
My Error Log
system information
- GD version : 2.0.28
- supported image types : png jpg gif bmp
- open_basedir : no restriction
source is an uploaded file
- upload OK
- file name OK
- source variables
    file_src_name : ayya?lar.jpg
    file_src_name_body : ayya?lar
    file_src_name_ext : jpg
    file_src_pathname : /tmp/phpVeyvkP
    file_src_mime : image/jpeg
    file_src_size : 33686 (max= 52428800)
    file_src_error : 0
- source file is an image
    image_src_x : 640
    image_src_y : 480
    image_src_pixels : 307200
    image_src_type : jpg
    image_src_bits : 8
process file to /pictures/pictures/
- file size OK
- file mime OK : image/jpeg
- new file name body : 230594692_389692_T
- file name safe format
- destination variables
    file_dst_path : /pictures/pictures/
    file_dst_name_body : 230594692_389692_T
    file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
    file_dst_name : 230594692_389692_T.jpg
    file_dst_pathname : /pictures/pictures/230594692_389692_T.jpg
- 230594692_389692_T.jpg doesn't exist already
- image resizing or conversion wanted
process file to /pictures/pictures/
- file size OK
- file mime OK : image/jpeg
- new file name body : 230594692_389692_BT
- file name safe format
- destination variables
    file_dst_path : /pictures/pictures/
    file_dst_name_body : 230594692_389692_BT
    file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
    file_dst_name : 230594692_389692_BT.jpg
    file_dst_pathname : /pictures/pictures/230594692_389692_BT.jpg
- 230594692_389692_BT.jpg doesn't exist already
- image resizing or conversion wanted
process file to /pictures/pictures/
- file size OK
- file mime OK : image/jpeg
- new file name body : 230594692_389692
- file name safe format
- destination variables
    file_dst_path : /pictures/pictures/
    file_dst_name_body : 230594692_389692
    file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
    file_dst_name : 230594692_389692.jpg
    file_dst_pathname : /pictures/pictures/230594692_389692.jpg
- 230594692_389692.jpg doesn't exist already
- image resizing or conversion wanted
Reply
Re: Some JPG Images new!
by colin, 16 years, 7 months ago
You log indicates that it all works. Can you paste a log for an image which fails?

Also, I see some non-ASCII characters in your filename (ayya--?--lar). Does the class fails for images which have these characters, or does it work fine?

For chmod, use the chmod command under Linux. Under Windows, I don't think there is such a permissions system.Reply