forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: ucillian on May 19, 2008, 12:02:25 am

Title: [Solved]: Unable to create thumbnail or resize image.
Post by: ucillian on May 19, 2008, 12:02:25 am
http://ucillian.com/photos

login: test
pw: test

CHMOD permissions double checked and are fine.  Last successful upload was on 10 April 2008, and I found this error yesterday when trying to upload.  It was only one file, not very big, and it won't upload via Batch Add process or single file upload.

Error message:

Quote
The file 'albums/userpics/10001/07.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/ucillian/public_html/photos/db_input.php - Line: 391

I have the PHP file saved and it can be PMed if that's needed.  Any help is appreciated.
Title: Re: Unable to create thumbnail or resize image.
Post by: Nibbler on May 19, 2008, 03:56:35 am
What PHP file? Your gallery is way of date - update. Make sure you have the correct 'resize method' set in config.
Title: Re: Unable to create thumbnail or resize image.
Post by: ucillian on May 19, 2008, 12:01:00 pm
I meant db_input.php where the error apparently is.  I upgraded, and now when I try to Batch Add files the thumbnail doesn't even show up (even though the check box beside the file name is still there).  When I try to upload the file individually, the error message says:

Quote
The file 'albums/userpics/10001/07.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/ucillian/public_html/photos/db_input.php - Line: 402
Title: Re: Unable to create thumbnail or resize image.
Post by: Nibbler on May 19, 2008, 12:08:32 pm
Make sure you have the correct 'resize method' set in config.

What's it set to?
Title: Re: Unable to create thumbnail or resize image.
Post by: ucillian on May 19, 2008, 10:01:57 pm
Is that the exact title of the label in Config?  I can't seem to find it.  Is this what you mean?

Quote
Quality for JPEG files : 80          
Max dimension of a thumbnail ** : 100      
Use dimension ( width or height or Max aspect for thumbnail ) ** : Max Aspect
Create intermediate pictures :   Yes 
Max width or height of an intermediate picture/video ** : 400
Max size for uploaded files (KB) : 1024
Max width or height for uploaded pictures/videos (pixels) : 2048
Auto resize images that are larger than max width or height :   No
Title: Re: Unable to create thumbnail or resize image.
Post by: just_some_guy on May 19, 2008, 10:04:40 pm
Its called "Method for resizing images", its under - Config > Files and thumbnails advanced settings  > Method for resizing images
Title: Re: Unable to create thumbnail or resize image.
Post by: ucillian on May 19, 2008, 10:14:16 pm
Oh!  Thank you.

It's set on Image Magick.
Title: Re: Unable to create thumbnail or resize image.
Post by: just_some_guy on May 19, 2008, 10:32:23 pm
You mentioned that you had last uploaded a file the 10th of April, do you know if the Image Magick has been removed from your server since then? try changing the "Method for resizing images" to GD 2 and see if it makes a difference, check your phpinfo to find out if GD is supported.
Title: Re: Unable to create thumbnail or resize image.
Post by: ucillian on May 19, 2008, 10:40:46 pm
!!!!!

Amazing.  It works.  THANK YOU!