Problem with Upload and with the admin function : restore pictures
Ruhrpottjung
Joined: 2011-01-02
Posts: 8 |
Posted: Wed, 2014-09-03 07:36 | |||||
When I try to upload a picture it quit always with a error "can't process picture". Greetings
|
||||||
Posts: 27300
Try a different image tool kit.
Admin -> graphics
What if you add a very small image?
Anything in the gallery3/var/logs?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Hello Dave,
thank you at first for your answer.
The Logfile say only:
<?php defined('SYSPATH') or die('No direct script access.'); ?>
Small files till 770 KB I can upload without any problems but if I try for example to upload a file with a size of 888 KB quit with a undefined error.
The only thing I saw yesterday but think it's from rebuilding the pictures was that here:
2014-09-03 09:52:06 +02:00 --- error: Caught exception rebuilding images: DSCF0725
@todo EMPTY_INPUT_FILE
Forgotten to say : only GD is available
Posts: 27300
GD is a memory hog and it also has to share memory with other PHP applications.
Your either stuck adding small items or ask your host to install one of the other graphic toolkits.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Hallo Dave,
think that problem first occurs after the last update of Gallery3, because also use the same hoster before and also upload bigger pictures.
Think not that I can make it work to let the hoster install for example ImageMagick.
And I think when it worked before it must have something to do with the upgrade to 3.0.9.
Also try it during I wait for the answer to install Gallery3 new, but the result was the same like at the existing installation.
Will try later to install 3.0.2 new and will have a look if the problem exist then also.
Will post here the result.
Posts: 27300
I think you should have mentioned that if your first post.
Let us know how the new install goes.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Hello Dave,
installed now the 3.0.2 but same problem. So it seems that maybe my provider changed something. The only problem I have that I don't see a way to debug so that I can see where the problem is.
Hans
Posts: 8
I open now a ticket at my hoster to let him look why I can't anymore upload a picture and also please him to install ImageMagic. (If he do I don't know but would be nice)
Posts: 8
They told me that ImageMagick is installed but can't see the block into my info.php.
They also told me that 64MB memory_limit would be not enough and they could offer me (for more money) memory_limit of 128 MB
Posts: 27300
Only 128MB? Time for a new host.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Hello Dave,
well the problem is that I move not to the states and because I looked for a host what also accept paypal or something like that.
He told me my "memory_limit" will be not 64 MB and he could update it to 128MB, don't have any idea what I need to upload a 3 MB JPG file?!
Was looking for a other hoster but most of them take to much money. Only host there my wordpress and the gallery3 installation and of course my webpage.
Hans
Posts: 120
It Imagemagick is installed on your host, it sounds like something isn't quite set up right.
You can use this script to check yourself if it is installed.
Code stolen from http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10511.
Posts: 8
How can I calculate the amount of memory needed for a 3MB jpeg image?
Saw when I now switch to ImageMagick that the picture now uploaded but the thumbnails will be not generated?
That will be the last problem for me. Can change now the path to /usr/bin to activate ImageMagick but Gallery3 don't generate after successfull upload the picture the thumbs.
Thank you for the help.
Hans
Posts: 27300
File size is not equal to the required memory space. jpg is compressed and is not the same as the memory required to convert/rotate/manipulate as the file size on disk.
GD as a image toolkit:
Generally, the rule of thumb is, width x height x 4 (rgba) for both the source and destination images, and don't forget about the amount of memory the script itself has already consumed.
While others say:
A very rough calculation for the memory need under GD library is:
Width x Height x 8 (bits) x 3(channels) / 8 x 1.65
So for a 7.1 MP camera picture :
We need now 20.25 MB memory , but the file size is still 5.30 KB.
Hope that helps.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team