forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: nelgar on December 08, 2005, 11:32:38 am

Title: Won't upload files bigger than 1000px
Post by: nelgar on December 08, 2005, 11:32:38 am
I can't seem to upload files bigger than 1000 px.

I've set the max width or height for uploaded pictures to 5000 px (to be sure) and the max size in bytes to 3072 yet it won't upload any files bigger than 1000 px.

I've tried uploading a file smaller than 1000px of around 2 MB and then there's not problem - but as soon as the files is larger than 1000 px it won't let me upload not matter the size in bytes.

Help anyone ?
Title: Re: Won't upload files bigger than 1000px
Post by: kegobeer on December 08, 2005, 05:00:12 pm
I can't duplicate this on my 1.4.2 test install.  Most likely you are running into a memory limitation set by your webhost.  It takes a huge amount of memory to resize images, and it has nothing to do with the actual file size - it's all about the number of pixels in an image.

Ask your host to increase memory allocated to php.  Check out the FAQ for a complete list of php.ini entries.

http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#uploadGeneralTroubleshooting

Does this happen during the batch add process, during the web upload process, or both?
Title: Re: Won't upload files bigger than 1000px
Post by: nelgar on December 08, 2005, 08:46:50 pm
It happens during both  the batch add process and the web upload process.

When I batch it it will add the smaller files but not the larger ones.
My PHP memory is 8 MB now - I can have it upgraded to 16 0r 24 MB but unfortunately I'll have to pay for that - which I don't mind if someone can actually say with some certainty it will solve this problem. (and should I upgrade to 16 or 24 MB then ?)
Title: Re: Won't upload files bigger than 1000px
Post by: Joachim Müller on December 08, 2005, 11:35:39 pm
read the sticky thread on this sub-board
Title: Re: Won't upload files bigger than 1000px
Post by: nelgar on December 09, 2005, 10:43:42 am
The debug info gives me this

USER:
------------------
Array
(
    [ID] => fb53b657df27770b9fbaf70421dca456
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => winta
    [groups] => Array
        (
           
        )

    [disk_max] => 4000
    [disk_min] => 4000
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 1
    [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] => 3
    [group_quota] => 4000
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [URI_array] => Array
        (
           
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.11-log
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 1
Active Links 2
Client API version 4.1.14
MYSQL_MODULE_TYPE no value
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | Off
safe_mode_exec_dir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
safe_mode_gid | On | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .: | .:
open_basedir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i -f snl93826.winta.dk | /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 | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.078 seconds - 17 queries in 0.01 seconds - Album set : ; Meta set: ;




What conclusions can be drwn from that ?
It's probably a dumb question but I don't know anything about php  :-X

Title: Re: Won't upload files bigger than 1000px
Post by: Nibbler on December 09, 2005, 12:13:47 pm
None whatsoever, that's why nobody asked to see it. Please post a link to a pic that you are unable to upload to Coppermine.
Title: Re: Won't upload files bigger than 1000px
Post by: nelgar on December 11, 2005, 02:04:17 pm
well that would probably be any picture larger than 1000 px I suppose , but to give an example:


http://img.photobucket.com/albums/v206/uberloon/coppermine/Clip.jpg (http://img.photobucket.com/albums/v206/uberloon/coppermine/Clip.jpg)    2000x1333 - 258 K - Not Working
http://img.photobucket.com/albums/v206/uberloon/coppermine/Clipsmall.jpg (http://img.photobucket.com/albums/v206/uberloon/coppermine/Clipsmall.jpg)     1000x666 - 233 K - Working
Title: Re: Won't upload files bigger than 1000px
Post by: Joachim Müller on December 11, 2005, 07:25:46 pm
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Title: Re: Won't upload files bigger than 1000px
Post by: Nibbler on December 11, 2005, 07:42:41 pm
I tried adding the pic that doesn't work for you to my gallery. It fails with an 8MB limit but can be added sucessfully with a 16MB limit. You could also try using imagemagick if available, it is not affected by the php memory limit.
Title: Re: Won't upload files bigger than 1000px
Post by: nelgar on December 11, 2005, 07:55:55 pm
Thank you very much :)

I will try image magick first then :D