Photos uploaded are not displaying properly - distorted Photos uploaded are not displaying properly - distorted
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Photos uploaded are not displaying properly - distorted

Started by kingston, January 27, 2004, 08:24:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kingston

Users are able to upload photos but the photos are scrambled or distorted when viewed.

Here is the url  http://www.rickert-fpjcr.org/modules/jmcontent/coppermine/

I will upload photo to an album called Pat Lynn's Crew for viewing.  Please help.

My users are frustrated.

 :roll:

Casper

Hi,
The images are being corrupted.  
    How long has this been happening?
    Is it happening to all users?  
    Does this happen when you ftp and batch add?[/list:u]
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

kingston

Seems to be happening to all users.   I have tried several photos with same results.   I ahve notiiced via FTP client that the photos (thumbs & normal) being upload are not making their way into a number folder in the userpics folder.

Have not tried FTP and batch upload.   This is a user contribution site and that has not been our method of uploading photos.

Coppermine was functioning beautifully until the 23rd.

thnaks

you may AIM me at vuswing2603

Casper

Has your server altered anything since then.
What image software does the server use, GD(1 or 2) or imagemagik?
Can you post a test account and login with upload rights.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

kingston

The server uses GD1.  homepageuniverse is the web host.

I will create a test account:


thanks.

Nibbler

GD 1 is significantly inferior in terms of image quality to GD 2, see the faq about the difference between them.

hyperion

This could be realated to GD1, or it could be some other things.

1. Check your JPEG compression ratio to see if you accidentally lowered it to much.

2. If the pics have always looked like this, then it is most likely your GD1 library; however, you can attempt a repair by using the batch resize option to resize all the thumbs.

3.  If the problem suddenly appeared, check to see if your host made any changes on the server (i.e. perhaps they upgraded to GD2 and you would need to switch the method in the config).

In general, you should only use GD1 if you must have compressed GIF support.  Otherwise, you should ask the host to upgrade to GD2 (which does not support GIFs), or ImageMagick (which supports decompressed GIFs).  Both are lightyears ahead of GD1 interms of quality and memory usage.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

kingston

JPEG quality is set to 90; always has been.  

Just for kicks I changed the configuration to GD2 and got corrupted uploads as well.

Any other thoughts.  

What about the thumbs and normals not ending up in a number folder in the userpics folder.  Before this started the images were created in a numbered folder.  Is this unusual?

Thanks for the help.

 :(

kingston

I just tried GD2 configuration again and it uploaded the image fine without corruption.

Follow my previous link to see.

It seems that that my web host must have switched to GD2 sometime last week.  I will confirm that from them and report back.

Thanks for the heads up and suggestions.

I really like coppermine; seems to be one of the better php scripts around.

hyperion

Good, now you just need to use the batch resize to repair the thumbs that were damaged.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

kingston

Now GD2 is failing and GD1 fails as well.

Could someone please follow my earlier url link and test a photo using the username and password I supplied to casper?

It may be a network problem at my web host's end.

Incidentally,  the corrupted test images are being reported as 16KB when uploaded where the good test image is reported as 8 KB.

All help appreciated.

THX

hyperion

There isn't much point unless you're willing to make the test account admin. You should PM such details; do not post them.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Casper

Hi kingston,

I just uploaded a pic as a test to the same album you used earlier.  It is a known good pic, but was corrupted.

Please delete the pic from your gallery.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

Ok,
I had a look in admin mode, and found the following.

Config seems to be correct.

Jpg's are still being corrupted.
PNG upload resulted in following error;
Fatal error: imagecreatefrompng(): gd-png: fatal libpng error: too many length or distance symbols in /home/httpd/vhosts/rickert-fpjcr.org/httpdocs/modules/jmcontent/coppermine/include/picmgmt.inc.php on line 178

This was a known good PNG.

 Extra debug info;
Notice: Undefined index: user3 in /home/httpd/vhosts/rickert-fpjcr.org/httpdocs/modules/jmcontent/coppermine/db_input.php on line 199

Notice: Undefined index: user4 in /home/httpd/vhosts/rickert-fpjcr.org/httpdocs/modules/jmcontent/coppermine/db_input.php on line 200


phpinfo;
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
 
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

Directive Local Value Master Value
max_execution_time 30 30
max_input_time 60 60
upload_max_filesize 2M 2M
post_max_size 8M 8M



Could it be a bad GD install
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

sporkit

im having a similar problem it seems like its related to this topic http://forum.coppermine-gallery.net/index.php?topic=3412.0.

http://www.f8klan.com/cpg same thing is happening to me.  really dont know what else i can do to fix this.  all upload limits seem high enough on my server but still im getting corrupt images.  :-\\