Unable to create thumbnail or reduced size image.
-> Coppermine

#1: Unable to create thumbnail or reduced size image. Author: mrrizal PostPosted: Tue Jan 04, 2005 10:22 am
    ----
i try to upload my picture of my website on this server www.cpgnuke.com
i got this msg
Quote::
The picture 'modules/coppermine/albums/userpics/11811/dsc00942.JPG' can't be inserted in the album

Unable to create thumbnail or reduced size image.

this error was same on my cpgnuke server

#2: Re: Error when trying to upload images Author: PhoenixLocation: Netizen PostPosted: Tue Jan 04, 2005 10:59 am
    ----
if you have the same message, you can use the same fix, above.

#3: Re: Error when trying to upload images Author: mrrizal PostPosted: Wed Jan 05, 2005 3:52 am
    ----
i just uncomment SILLY_SAFE_MODE i still got the same error msg. before this my coppermine display corrupted image, i followed DJmaze to update my gd2.inc (version 1.10) thru cvs.. and now my coppermine cannot resize image using GD and ImageMagick...

i got this msg when using GD
Quote::
Fatal error: Call to undefined function: image_file_to_extension() in /usr/home/mrrizal/data/www/semesti/html/includes/imaging/gd2.inc on line 68

and this msg using ImageMagick and netpbm
Quote::
The picture 'modules/coppermine/albums/userpics/dsc00942~4.JPG' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /usr/home/mrrizal/data/www/semesti/html/modules/coppermine/db_input.php - Line: 476

#4: Re: Error when trying to upload images Author: PhoenixLocation: Netizen PostPosted: Wed Jan 05, 2005 3:56 am
    ----
you have no server specs or cpgnuke version in your profile - this topic was for an 8.2 issue?

#5: Re: Error when trying to upload images Author: mrrizal PostPosted: Wed Jan 05, 2005 4:06 am
    ----
ok done..before this i try standalone coppermine and coppermine on phpnuke.. seem ok... i got those msg whentry to upload image bigger than my restricted rule. and i try to upload my picture on www.cpgnuke.com i still got this msg

Quote::
The picture 'modules/coppermine/albums/userpics/11811/dsc00942.JPG' can't be inserted in the album

Unable to create thumbnail or reduced size image.

my picture can be view on test.lexiconsms.net/aj...C00942.JPG


Last edited by mrrizal on Wed Jan 05, 2005 4:18 am; edited 2 times in total

#6: Re: Error when trying to upload images Author: PhoenixLocation: Netizen PostPosted: Wed Jan 05, 2005 4:08 am
    ----
okay, now I'm splitting to the 9.x forums - if it turns out to be a bug, a bug report will need to be placed. Have you checked cpgnuke.com/Projects/p=1.html

#7: Re: Error when trying to upload images Author: mrrizal PostPosted: Wed Jan 05, 2005 4:11 am
    ----
tq Phoenix.. my website not crucially need an album but i like coppermine very much... tq

#8: Re: Unable to create thumbnail or reduced size image. Author: PhoenixLocation: Netizen PostPosted: Wed Jan 05, 2005 4:18 am
    ----
have you seen this new post?
cpgnuke.com/Forums/vie...=6655.html

#9: Re: Unable to create thumbnail or reduced size image. Author: JaX_NeMo PostPosted: Fri Jan 21, 2005 2:25 pm
    ----
I got this error when I tried to upload image. May I know what is the problem?

Quote::
Unable to create thumbnail or reduced size image.

File: /home/sapphire/public_html/modules/coppermine/db_input.php - Line: 446

#10: Re: Unable to create thumbnail or reduced size image. Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Fri Jan 21, 2005 2:45 pm
    ----
Look in your footer for additional errors WHICH you ONLY recieve when logged in as admin.

#11: Re: Unable to create thumbnail or reduced size image. Author: JaX_NeMo PostPosted: Fri Jan 21, 2005 5:33 pm
    ----
DJMaze wrote:
Look in your footer for additional errors WHICH you ONLY recieve when logged in as admin.

Quote::
includes/coppermine/picmgmt.inc
Warning line 125: chmod(): SAFE MODE Restriction in effect. The script whose uid is 32070 is not allowed to access uploads/albums/userpics/10002/newsmodule2.jpg owned by uid 99
Warning line 127: getimagesize(): SAFE MODE Restriction in effect. The script whose uid is 32070 is not allowed to access uploads/albums/userpics/10002/newsmodule2.jpg owned by uid 99
Warning line 127: getimagesize(uploads/albums/userpics/10002/newsmodule2.jpg): failed to open stream: Success
Warning line 130: unlink(): SAFE MODE Restriction in effect. The script whose uid is 32070 is not allowed to access uploads/albums/userpics/10002/newsmodule2.jpg owned by uid 99

#12: Re: Unable to create thumbnail or reduced size image. Author: JaX_NeMo PostPosted: Mon Jan 24, 2005 12:27 pm
    ----
bump

#13: Re: Unable to create thumbnail or reduced size image. Author: sennsi PostPosted: Fri Jan 28, 2005 3:02 am
    ----
Any thoughts or solutions here?

I am facing the same problem

#14: Re: Unable to create thumbnail or reduced size image. Author: PhoenixLocation: Netizen PostPosted: Fri Jan 28, 2005 3:21 am
    ----
There are many posts on this issue like,
cpgnuke.com/Forums/vie...=6749.html

Do a forum search for "safe mode coppermine" and click "search for all terms".

#15: Re: Unable to create thumbnail or reduced size image. Author: sennsi PostPosted: Fri Jan 28, 2005 4:08 am
    ----
[quote]
Phoenix wrote:
There are many posts on this issue like,
cpgnuke.com/Forums/vie...=6749.html

Do a forum search for "safe mode coppermine" and click "search for all terms".

Hi Phoenix,

thanks for the link and advice. I've been reading for the past 4 hours (no kidding!) on how to solve this db_input.php ERROR showing up whenever I try to upload a pic.

Tried to access CVS, cut and paste all the updated files, only to find that more errors are piling up.

When I was uploading 2 weeks back, no such error has occured.

Quote::
The picture 'modules/coppermine/albums/userpics/woman_porsche.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/hazecaf/public_html/modules/coppermine/db_input.php - Line: 476

Error at the bottom footer:

Quote::
includes/imaging/gd2.inc
Warning line 76: imagejpeg(): Unable to open '.jpg' for writing
modules/coppermine/include/picmgmt.inc
Warning line 119: chmod(): No such file or directory
Warning line 121: getimagesize(modules/coppermine/albums/userpics/thumb_): failed to open stream: No such file or directory
Warning line 124: unlink(modules/coppermine/albums/userpics/thumb_): No such file or directory

Looking for a solution in a haystack ain't an easy one, hence the numerous posts on this particular issue.

#16: Re: Unable to create thumbnail or reduced size image. Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Fri Jan 28, 2005 5:29 am
    ----
mixing of cvs and other files is not suggested, can you download the latest snap and update all files except your theme? I can not recreate the problem in my cvs copy.

looking at the debug output the picture name is not being passed to the imaging function which works fine here...

#17: Re: Unable to create thumbnail or reduced size image. Author: sennsi PostPosted: Fri Jan 28, 2005 6:14 am
    ----
Thanks akamu!

I've already downloaded RC1 and installed the files over PR1. So far everything works great. Pictures are uploading fine.

Cheers,
sennsi

#18: Re: Unable to create thumbnail or reduced size image. Author: GeraldLocation: Asheville, NC PostPosted: Sun Feb 13, 2005 7:51 pm
    ----
I'm working this issue too. I have reuploaded the file like was mentioned here but no luck. Having a image gallery is a major part of my site. The info below is from the attemp to upload an image it's close to the other info posted here other than the line number. As for me I have no idea what it means. Any help would be great. What should I do Next?

Quote::
Unable to create thumbnail or reduced size image.

File: /home/six50rider.com/www/650rider.com/modules/coppermine/db_input.php - Line: 446

Debug Info
Quote::

Debug InformationIntegration vars
Selected Nuke Theme: dragonfly
Coppermine Theme: modules/coppermine/themes/default
Module path modules/coppermine
Nukelink index.php?name=coppermine

$_SERVER vars
DOCUMENT_ROOT: /home/six50rider.com/www/650rider.com
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
SCRIPT_FILENAME: /home/six50rider.com/www/650rider.com/index.php
QUERY_STRING: name=coppermine&file=db_input
PHP_SELF: /index.php

CPG Config
TABLE_PICTURES cms_cpg_pictures
TABLE_ALBUMS cms_cpg_albums
TABLE_COMMENTS cms_cpg_comments
TABLE_CATEGORIES cms_cpg_categories
TABLE_CONFIG cms_cpg_config
TABLE_USERGROUPS cms_cpg_usergroups
TABLE_VOTES cms_cpg_votes
TABLE_USERS cms_users
allow_private_albums 1
Site url (ecards_more_pic_target) http://650rider.com/
fullpath modules/coppermine/albums/
USER_IN_GROUPS 1
Default Language english
Language Directory coppermine

Queries
GET

Array
(
[name] => coppermine
[file] => db_input
)

POST

Array
(
[event] => picture
[album] => 3
[MAX_FILE_SIZE] => 1048576
[title] => test
[caption] =>
[keywords] =>
[user1] =>
[user2] =>
[user3] =>
[user4] =>
)

#19: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Thu Feb 17, 2005 7:00 am
    ----
I’m having this problem as well on either Upload or Batch Add:

Quote::
Unable to create thumbnail or reduced size image.

File: ./modules/coppermine/db_input.php - Line: 446

No additional error messages are shown in the Admin footer, though. If it were a safe mode issue, I would, wouldn’t I?

UPDATE: Configured Coppermine to use ImageMagick instead of GD and same problem still happens. (Path to convert is correct.)

#20: Re: Unable to create thumbnail or reduced size image. Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Thu Feb 17, 2005 7:40 am
    ----
We definatly need the info that is reported BELOW your page footer to solve these issues.

Thank you for your co-operation

#21: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Thu Feb 17, 2005 8:30 am
    ----
DJMaze wrote:
We definatly need the info that is reported BELOW your page footer to solve these issues.

You mean the Debug information, I presume. Here it is:

Integration vars
Selected Nuke Theme: dragonfly
Coppermine Theme: modules/coppermine/themes/default
Module path modules/coppermine
Nukelink index.php?name=coppermine
$_SERVER vars
DOCUMENT_ROOT: [fs path to web root supressed for this post]/docs/
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.8,de-at;q=0.5,de;q=0.3
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050213 Firefox/1.0+
SCRIPT_FILENAME: [fs path to web root supressed for this post]/docs/index.php
QUERY_STRING: name=coppermine&file=searchnew&insert=1
PHP_SELF: /index.php
CPG Config
TABLE_PICTURES cms_cpg_pictures
TABLE_ALBUMS cms_cpg_albums
TABLE_COMMENTS cms_cpg_comments
TABLE_CATEGORIES cms_cpg_categories
TABLE_CONFIG cms_cpg_config
TABLE_USERGROUPS cms_cpg_usergroups
TABLE_VOTES cms_cpg_votes
TABLE_USERS cms_users
allow_private_albums 1
Site url (ecards_more_pic_target) greg.tcp.com/
fullpath modules/coppermine/albums/
USER_IN_GROUPS 1
Default Language english
Language Directory coppermine
Queries
GET

Array
(
[name] => coppermine
[file] => searchnew
[insert] => 1
)

POST

Array
(
[d0000] => 3
[pics] => Array
(
[0] => i0000
[1] => i0001
[2] => i0002
[3] => i0003
[4] => i0004
[5] => i0005
[6] => i0006
)

[album_lb_id_i0000] => d0000
[picfile_i0000] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM0OC5qcGc=
[album_lb_id_i0001] => d0000
[picfile_i0001] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM0OS5qcGc=
[album_lb_id_i0002] => d0000
[picfile_i0002] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM1MC5qcGc=
[album_lb_id_i0003] => d0000
[picfile_i0003] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM1MS5qcGc=
[album_lb_id_i0004] => d0000
[picfile_i0004] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM1Mi5qcGc=
[album_lb_id_i0005] => d0000
[picfile_i0005] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM1My5qcGc=
[album_lb_id_i0006] => d0000
[picfile_i0006] => dXNlcnBpY3MvMjAwNS8yMDA1LjAxLjA3LCBNeSBuZXcgZmxhdC9EU0MwMDM1NC5qcGc=
[insert] => Insert selected pictures
)

#22: Re: Unable to create thumbnail or reduced size image. Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Thu Feb 17, 2005 4:25 pm
    ----
no pazu the debug info that is even lower.
Below your "Interactive software released under GNU GPL, Code Credits, Privacy Policy"

Try using the cpgnuke or dragonfly theme, those templates have the proper settings for it

#23: Re: Unable to create thumbnail or reduced size image. Author: GeraldLocation: Asheville, NC PostPosted: Thu Feb 17, 2005 4:25 pm
    ----
Hey Pazu,
This may help, Not sure if your issue is the same as mine was but check this thread out.

this may work for you

#24: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Thu Feb 17, 2005 4:43 pm
    ----
DJMaze wrote:
no pazu the debug info that is even lower.
Below your "Interactive software released under GNU GPL, Code Credits, Privacy Policy"

Try using the cpgnuke or dragonfly theme, those templates have the proper settings for it

Sorry, I have all debug options on and the only thing down there are the database queries, even after switching back to the cpgnuke theme.

#25: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Thu Feb 17, 2005 7:11 pm
    ----
Okay, I was able to generate some error text:

Quote::
./modules/coppermine/db_input.php

* Notice line 361: Undefined variable: dest_dir
* Notice line 362: Undefined variable: dest_dir
* CMS Warning line 362: Destination directory is not writable by the script !

./includes/imaging/gd2.inc

* Warning line 34: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/var/tmp/php34aGPd' is not a valid JPEG file

(Note that I was able to successfully upload the same JPEG to my test installation running on Mac OS X 10.3.7/Apache 2.0.52/PHP 4.3.9/MySQL 4.0.21/Dragonfly 9.0.1.1.)

(Note also that modules/coppermine/albums & modules/coppermine/albums/userpics are both 777.)

#26: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Fri Feb 18, 2005 11:53 am
    ----
I switched coppermine to use ImageMagick instead and got the following, slightly different, error text:

Quote::
./modules/coppermine/db_input.php

* Notice line 361: Undefined variable: dest_dir
* Notice line 362: Undefined variable: dest_dir
* CMS Warning line 362: Destination directory is not writable by the script !

./includes/imaging/im.inc

* Notice line 32: Undefined index: OS
* Warning line 40: exec() [function.exec]: Unable to fork [/usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpARaGwX' 'modules/coppermine/albums/userpics/schnee.jpg' 2>&1]
* CMS Warning line 45: Error executing ImageMagick - Return value: -1
Cmd line : /usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpARaGwX' 'modules/coppermine/albums/userpics/schnee.jpg'
The convert program said:
* Warning line 46: unlink(modules/coppermine/albums/userpics/schnee.jpg) [function.unlink]: No such file or directory

./includes/cmsinit.inc

* Warning line 468: htmlspecialchars() expects parameter 1 to be string, array given

#27: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Fri Feb 18, 2005 11:56 am
    ----
Is there any known problem running Dragonfly on Solaris?

#28: Re: Unable to create thumbnail or reduced size image. Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Fri Feb 18, 2005 3:43 pm
    ----
Ah pazu i think i see the problem.
Did you login as member ?

#29: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Fri Feb 18, 2005 5:21 pm
    ----
DJMaze wrote:
Ah pazu i think i see the problem.
Did you login as member ?

Yes, but the error occurs whether logged in as a member or an admin.

#30: Re: Unable to create thumbnail or reduced size image. Author: biotones PostPosted: Fri Feb 18, 2005 6:15 pm
    ----
thanks guys.... it works... i just need 2 install image magick in my web space... its runs nicely...hooray....

#31: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Wed Feb 23, 2005 8:47 am
    ----
FYI, reinstalled Dragonfly files and the problem persists. I switched back to GD from IM and see the following error text on upload attempt:

Code::
./includes/imaging/gd2.inc

    * Warning line 34: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/var/tmp/php7daiqJ' is not a valid JPEG file

./includes/cmsinit.inc

    * Warning line 623: fopen(cache/tpl_dragonfly_header.html.inc) [function.fopen]: failed to open stream: Permission denied
    * CMS Warning line 624: Cannot open file (cache/tpl_dragonfly_header.html.inc)

#32: Re: Unable to create thumbnail or reduced size image. Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Wed Feb 23, 2005 6:11 pm
    ----
Pazu what host do you have ?
You have so much permission troubles, it seems they are so scared that they've locked everything to the bone to disallow you any access to your own webspace.

Let them contact us for advice at a $50 an hour rate.

#33: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Fri Feb 25, 2005 11:24 am
    ----
DJMaze wrote:
Pazu what host do you have ?
You have so much permission troubles, it seems they are so scared that they've locked everything to the bone to disallow you any access to your own webspace.

Sigh. My host is run by a friend, and I have access to everything. I have my own permissions set to the minimum necessary to allow access.

For example, my web root is drwx---r-x, as are other directories inside that. Regular files are -rw----r--. This is all that's required to serve files via a web server, so I have no more granted. (In other words, my web tree uses umask 072.)

(Of course, where Dragonfly’s INSTALL.txt specifies certain permissions for certain directories, I have granted those.)

What are the default permissions you suggest to allow this software to work?

#34: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Mon Feb 28, 2005 10:42 am
    ----
Hm, one thing I noticed is that on my Solaris installation Dragonfly wants to put the uploaded photo into /modules/coppermine/albums/userpics
/10002, while on my test OS X installation the photo goes straight into /modules/coppermine/albums/userpics.

This could account for some of the error messages:

Quote::
Warning line 40: exec() [function.exec]: Unable to fork [/usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpk_aOOf' 'modules/coppermine/albums/userpics/schnee.jpg' 2>&1]
# CMS Warning line 45: Error executing ImageMagick - Return value: -1
Cmd line : /usr/local/bin/convert -quality 80 -antialias -interlace plane -geometry 2048x1536 '/var/tmp/phpk_aOOf' 'modules/coppermine/albums/userpics/schnee.jpg'
The convert program said:
# Warning line 46: unlink(modules/coppermine/albums/userpics/schnee.jpg) [function.unlink]: No such file or directory

Since the .jpg file is not, in fact, in userpics, but rather in userpics/10002.

Why is it going there? Does the folder correspond to an album? If so, then why isn’t this happening on my OS X install? If I delete the directory, it simply reappears on the next upload attempt.

#35: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Wed Mar 02, 2005 9:01 am
    ----
…so, is it normal for the uploaded photo to go into userpics/10002 or not?

#36: Re: Unable to create thumbnail or reduced size image. Author: RedGerryLocation: Fishcross, Scotland PostPosted: Wed Mar 02, 2005 3:00 pm
    ----
Been keeping an eye on this post.I've been having this problem with CVS site for a week or so.

Have just updated latest CVS and problem has now resolved.

#37: Re: Unable to create thumbnail or reduced size image. Author: renshaiLocation: st. louis PostPosted: Thu Mar 03, 2005 11:27 pm
    ----
Okay, this is the error I am getting, none of these solutions have worked so far for me.
and how do you install imagemagick on a 2003 server running iis and php. Sorry, still have my new car smell.

Unable to create thumbnail or reduced size image.

File: d:\prophets\forum4\modules\coppermine\db_input.php - Line: 446

and this

includes\imaging\im.inc
Warning line 44: exec(): Unable to fork [/imagemagick/convert "C:\PHP\uploadtemp\php47.tmp" -quality 80 -antialias -geometry 1280x960 "modules\coppermine\albums\userpics\10002\mlna0019.jpg" 2>&1]
CMS Warning line 49: Error executing ImageMagick - Return value: -1
Cmd line : /imagemagick/convert "C:\PHP\uploadtemp\php47.tmp" -quality 80 -antialias -geometry 1280x960 "modules\coppermine\albums\userpics\10002\mlna0019.jpg"


Warning line 50: unlink(modules/coppermine/albums/userpics/10002/mlna0019.jpg): No such file or directory

#38: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Fri Mar 04, 2005 6:03 pm
    ----
RedGerry wrote:
Been keeping an eye on this post.I've been having this problem with CVS site for a week or so.

Have just updated latest CVS and problem has now resolved.

Any idea what files changed that might have fixed this? Maybe we can hope for a maintenance release sometime soon.

#39: Re: Unable to create thumbnail or reduced size image. Author: PhoenixLocation: Netizen PostPosted: Fri Mar 04, 2005 7:32 pm
    ----
I had similar issues on a site I installed a couple of weeks ago - essentially just update all the files in modules/coppermine/..... plus the includes/coppermine directory.

#40: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Mon Mar 07, 2005 2:10 pm
    ----
Phoenix wrote:
I had similar issues on a site I installed a couple of weeks ago - essentially just update all the files in modules/coppermine/..... plus the includes/coppermine directory.

I’m having CVS problems, and would prefer not to go the CVS route, anyway. Might you be able to gzip up these directories and e-mail them to me?

#41: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Thu Mar 10, 2005 8:37 am
    ----
Hm, dead silence…

Oh, well. Any chance of a 9.0.1.2 release at some point?

#42: Re: Unable to create thumbnail or reduced size image. Author: Pazu PostPosted: Tue Mar 15, 2005 3:57 pm
    ----
I updated to the latest, html-200503151200/9.0.1.9, and sadly the problem still occurs.

Code::
./includes/imaging/gd2.inc

    * Warning line 34: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/var/tmp/phpt6aqEM' is not a valid JPEG file

#43: Re: Unable to create thumbnail or reduced size image. Author: renshaiLocation: st. louis PostPosted: Thu Mar 17, 2005 4:10 am
    ----
how do you install imagemagick on a IIS/2003 system so that it works with coppermine?

#44: Re: Unable to create thumbnail or reduced size image. Author: Paganstar PostPosted: Wed Sep 07, 2005 3:52 pm
    ----
Ok I am having the same issue as all above.
It is a fresh install of Dragonfly downloaded today from the site. I have all the chmod settings correct

The errors I am getting is
Code::
CMS Warning line 49: Error executing ImageMagick - Return value: 127
Cmd line : convert 'modules/coppermine/albums/userpics/php27Udok' -quality 80 -antialias -geometry 185x231 'modules/coppermine/albums/userpics/10002/epic_lvl.gif'
sh: line 1: convert: command not found

Warning line 50: unlink(modules/coppermine/albums/userpics/10002/epic_lvl.gif): No such file or directory

I have tested this with a .gif, .jpg and .png file. I have made sure all were lower case with no change.
I have heard about a SILLY_SAFE_MODE file but I do not know where it is so I do not know whether it is commented out or not.

Any assistance would be greatly appreciated.

#45: Re: Unable to create thumbnail or reduced size image. Author: ductsoup PostPosted: Mon Nov 07, 2005 3:49 pm
    ----
Not sure if this covers all the issues in this thread but it might help those using GD2 and PHP 4.1.1. For the background check:

http://bugs.php.net/bug.php?id=35060

Here's a workaround. Add two lines to the imaging/gd2.inc file around line 90 ...

Code::
	if ($dest_info[2] == IMAGETYPE_GIF) {
		if (!imagegif($dst_img, $dest_file)) { return -3; }
	} else if ($dest_info[2] == IMAGETYPE_JPEG) {
// PHP 4.1.1 workaround	
		touch($dest_file);
  		chmod($dest_file,0777); 
// 	
		if (!isset($dest_info['quality']) || intval($dest_info['quality']) < 10) $dest_info['quality'] = 85;
		if (!imagejpeg($dst_img, $dest_file, intval($dest_info['quality']))) { return -3; }
	} else {
		if (!imagepng($dst_img, $dest_file)) { return -3; }
	}

#46: Re: Unable to create thumbnail or reduced size image. Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Mon Nov 07, 2005 9:40 pm
    ----
Try this file and tell me if/how it works....

#47: Re: Unable to create thumbnail or reduced size image. Author: ductsoup PostPosted: Tue Nov 08, 2005 9:18 pm
    ----
Yeah, guess I was a little narrow minded there. ")

#48: Re: Unable to create thumbnail or reduced size image. Author: rossLocation: On the beach PostPosted: Wed Feb 01, 2006 4:23 am
    ----
Alright, I read previous posts and I read where it said to put GD2 in your webspace.

I understand GD2 comes with PHP, but is there a place to download it and install? Also, I'm running on Dragonfly and didn't see a GD2 in the dropdown choices (IM and netpbm only).

Does this apply to IIS servers as well?

#49: Re: Unable to create thumbnail or reduced size image. Author: rossLocation: On the beach PostPosted: Wed Feb 01, 2006 4:26 am
    ----
akamu wrote:
Try this file and tell me if/how it works....

Akamu,
Which directory of my site do I install this file?

Also, which do I choose from my admin panel to make coppermine run? I only have IM or netpbm.

#50: Re: Unable to create thumbnail or reduced size image. Author: nitro2k01 PostPosted: Sat Jun 24, 2006 6:10 am
    ----
well changing to ImageMagick or Netpbs will not work.

this problem is coming from php Safe_mode.

For me after disabling the safe_mode(off) worked perfect.

#51: Re: Unable to create thumbnail or reduced size image. Author: Emsland-Party.deLocation: Lummer Land (Germany) PostPosted: Sun Sep 28, 2008 11:31 am
    ----
you can set the safe_mode ON

but you must set the

safe_mode_gid = Off

to

safe_mode_gid = On

this works Wink

#52: Re: Unable to create thumbnail or reduced size image. Author: mpyuskoLocation: USA PostPosted: Tue Apr 28, 2009 3:37 am
    ----
Not working for me.

#53: Re: Unable to create thumbnail or reduced size image. Author: mpyuskoLocation: USA PostPosted: Tue Apr 28, 2009 12:59 pm
    ----
I guess I should clarify. My webservers specs are in my sig, but my development server is
Linux 2.6.27.7, Apache 2.2.10, mysql 5.0.67, PHP 5.2.9, DF 9.2.1

On both, I get the message "Unable to resize or create thumbnails.

Both servers use the same php.ini file/settings.
phpinfo wrote:

gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
and also...
phpinfo wrote:

safe_mode On On
safe_mode_exec_dir no value no value
safe_mode_gid On On
safe_mode_include_dir no value no value

Any ideas?



-> Coppermine

All times are GMT

Page 1 of 1