Problem with Upload and with the admin function : restore pictures

Ruhrpottjung
Ruhrpottjung's picture

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".
If I look at the admin area I see that unter the point "restorte pictures" is standig that some pictures are not up to date. When I press the "start" button then nothing happens means the progress bar don't show any progress.
I also attached some screenshots what I see when I try to upload a picture.
Would be nice if someone could help me with my big problem.

Greetings
Hans

AttachmentSize
2014-09-02_23-24-48.png26.57 KB
2014-09-02_23-25-39.png50.07 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2014-09-04 01:50

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

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Thu, 2014-09-04 08:47

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2014-09-04 13:56

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

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Thu, 2014-09-04 14:55

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.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2014-09-04 16:58
Quote:
think that problem first occurs after the last update of Gallery3

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

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Fri, 2014-09-05 08:51

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

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Fri, 2014-09-05 09:49

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)

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Fri, 2014-09-05 14:19

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-09-05 16:29

Only 128MB? Time for a new host.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Fri, 2014-09-05 19:34

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

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Fri, 2014-09-05 22:12

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.

<?php
echo "<pre>";
system("convert -version");  
echo "</pre>";
?>

Code stolen from http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10511.

 
Ruhrpottjung
Ruhrpottjung's picture

Joined: 2011-01-02
Posts: 8
Posted: Mon, 2014-09-08 14:54

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-09-08 16:56
Ruhrpottjung wrote:
How can I calculate the amount of memory needed for a 3MB jpeg image?

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