coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: CountB on July 01, 2005, 04:51:49 PM

Title: Some images are 'broken'
Post by: CountB on July 01, 2005, 04:51:49 PM
I have an odd problem. Sometimes jpegs I upload appear as broken images, with no thumbnail. They have no uploading errors, no errors putting them in the album but they can not be viewed. Checking by FTP shows they exists in their 3 sizes and are set as 666, and deleting/re-uploading has no effect. Re-encoding the jpeg does not help either.

I'm baffled. Other uploads have been fine.

I include my debug output in case that helps.

USER:
------------------
Array
(
    [ID] => 93b3f65101b703b4cbb398ee3511885e
    [am] => 1
    [liv] => Array
        (
            [0] => 77
            [1] => 78
            [2] => 79
            [3] => 80
            [4] => 87
        )

    [search] => ###woman and food
    [uid] => 4
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => admin
    [user_password] => ********
    [user_lastvisit] => 2005-07-01 11:07:39
    [user_regdate] => 2005-06-13 11:46:40
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg133_filetypes;
    [1] => SELECT * FROM cpg133_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '90a7738fa6cfd52b90361fc6390a1795'
    [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg133_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg133_banned WHERE expiry < '2005-07-01 15:49:24'
    [5] => SELECT * FROM cpg133_banned WHERE ip_addr='62.3.202.90' OR ip_addr='62.3.202.90' OR user_id=1
    [6] => SELECT aid from cpg133_pictures WHERE pid='87'  LIMIT 1
    [7] => SELECT title,keyword from cpg133_albums WHERE aid='10'
    [8] => SELECT COUNT(*) from cpg133_pictures WHERE aid='10'   
    [9] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg133_pictures WHERE aid='10'    ORDER BY filename ASC
    [10] => SELECT title,keyword from cpg133_albums WHERE aid='10'
    [11] => SELECT COUNT(*) from cpg133_pictures WHERE aid='10'   
    [12] => SELECT * from cpg133_pictures WHERE aid='10'    ORDER BY filename ASC  LIMIT 2 ,1
    [13] => SELECT title, comments, votes, category, aid FROM cpg133_albums WHERE aid='10' LIMIT 1
    [14] => SELECT name, parent FROM cpg133_categories WHERE cid = '3'
    [15] => UPDATE cpg133_pictures SET hits=hits+1 WHERE pid='87'
    [16] => SELECT * FROM cpg133_exif WHERE filename = "albums/userpics/10001/095009~0.jpg"
    [17] => INSERT INTO cpg133_exif VALUES ('albums/userpics/10001/095009~0.jpg', 'a:0:{}')
    [18] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip FROM cpg133_comments WHERE pid='87' ORDER BY msg_id ASC
    [19] => SELECT title,keyword from cpg133_albums WHERE aid='10'
    [20] => SELECT COUNT(*) from cpg133_pictures WHERE aid='10'   
    [21] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, title, caption,hits,owner_id,owner_name from cpg133_pictures WHERE aid='10'    ORDER BY filename ASC  LIMIT 0 ,10
)

==========================
GET :
------------------
Array
(
    [pos] => -87
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.14-standard
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.14
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 20M | 20M
post_max_size | 80M | 80M
==========================
Page generated in 0.376 seconds - 22 queries in 0.084 seconds - Album set :
Title: Re: Some images are 'broken'
Post by: kegobeer on July 01, 2005, 05:33:24 PM
Link to your gallery, test user/password, direct link to a broken image please.
Title: Re: Some images are 'broken'
Post by: CountB on July 02, 2005, 10:14:30 PM
Quote from: kegobeer on July 01, 2005, 05:33:24 PM
Link to your gallery, test user/password, direct link to a broken image please.

http://www.leonard-cheshire.org/~copper/gallery/

login: test
password: password

a broken image is here http://www.leonard-cheshire.org/~copper/gallery/displayimage.php?pos=-80

I've uploaded working images since, but the broken ones will not upload. It's weird.
Title: Re: Some images are 'broken'
Post by: kegobeer on July 02, 2005, 10:40:42 PM
Going to the url for the image gives this error:

The image "http://www.leonard-cheshire.org/~copper/gallery/albums/userpics/10001/095009.jpg" cannot be displayed, because it contains errors.

Do me a favor: email whatever picture that is to junk@kazebeer.com so I can look at it.
Title: Re: Some images are 'broken'
Post by: CountB on July 02, 2005, 11:05:30 PM
Quote from: kegobeer on July 02, 2005, 10:40:42 PM
Going to the url for the image gives this error:

The image "http://www.leonard-cheshire.org/~copper/gallery/albums/userpics/10001/095009.jpg" cannot be displayed, because it contains errors.

Do me a favor: email whatever picture that is to junk@kazebeer.com so I can look at it.

Thanks, sent!
Title: Re: Some images are 'broken'
Post by: vuud on July 03, 2005, 02:14:15 AM
Quote from: kegobeer on July 02, 2005, 10:40:42 PM
Going to the url for the image gives this error:

The image "http://www.leonard-cheshire.org/~copper/gallery/albums/userpics/10001/095009.jpg" cannot be displayed, because it contains errors.

Do me a favor: email whatever picture that is to junk@kazebeer.com so I can look at it.

Wow, did you view source on that bad image after the error?  Its got ton of embedded text in it...  I am not sure if its normal, but check it out

Lots of XML, adode and apple stuff... could that be throwing the browsers?

Title: Re: Some images are 'broken'
Post by: kegobeer on July 03, 2005, 03:21:11 AM
Definitely something wrong - Photoshop won't load it.

"The document has an embedded color profile that does not match the current CMYK working space.
Embedded: Generic CMYK profile"

Once I converted it to RGB it worked fine.
Title: Re: Some images are 'broken'
Post by: CountB on July 03, 2005, 01:56:08 PM
Quote from: kegobeer on July 03, 2005, 03:21:11 AM
Definitely something wrong - Photoshop won't load it.

"The document has an embedded color profile that does not match the current CMYK working space.
Embedded: Generic CMYK profile"

Once I converted it to RGB it worked fine.

Aha, brilliant. Thanks.

Looks like CMYK colour profiles are the problem then.
Title: Re: Some images are 'broken'
Post by: Joachim Müller on July 04, 2005, 08:31:28 AM
GD can only handle RGB, it can not handle CMYK, so yes: CMYK is the problem.