Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 10:37

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 30. Aug 2009, 13:47 
Offline

Joined: 4. May 2009, 17:57
Posts: 13
Hi,

For some time I have tried to raise my php memorylimit to more than 32M. My camera produces 12MP images and php needs more than 32M to handle that.

Changing memory_limit in my php.ini (I host the album on my own server) raised the "master value" in php.info, but not the local value.

After much research and experiments with .htacces files I searched the TWG php-files for references to ini_set and found two, that tries to set the memory limit in php.

The one in index.php did the trick - setting it to the same as my memory_limit in php.ini finally gave me more memory, when i check my installation in TWG administration.

Now I can upload unalterede and big images from my camera.

So far so good. I have uploaded some big images and TWG can produce thumbs and big images, but when I try to view a slideshow, only the first image is visible. When the slideshow progresses there is only an empty placeholder for the thumb and no image.

I run TWG 1.77, I have no errors in the log and I use Imagemagick.

To sum up:

1) Why did I have to edit index.php to raise the memory_limit?
2) Why is my slideshow not working?

Many thanx in advance,

Asbjørn


Top
 Profile  
 
 Post subject:
PostPosted: 30. Aug 2009, 15:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

Other question:
why have you set $try_to_increase_memory_limit_to_32MB to true?
because only then TWG tries to increase the memory.

So how much memory do you have now?

About your slideshow - which slideshow type? Because image magick is not used for all slide show types and therefore gdlib is used and this seems to fail on your server.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 30. Aug 2009, 16:19 
Offline

Joined: 4. May 2009, 17:57
Posts: 13
Hi,

I set $try_to_increase_memory_limit_to_32MB to true some time ago to try to increase the memorylimit. I had forgotten that - It is set to false now, and the memory limit is correctly set by php.ini.

Sorry for that.

The slideshow I had trouble with was the one that you get, when you click the little green film and the one that you get when you click on a large image and you get the final largest image size.

I just tested both slideshows now and it works perfectly.

Is it right, that gdlib must have taken its memory limit from $try_to_increase_memory_limit_to_32MB so the album could only work for images larger than 32M uncompressed with imagemagick until I followed your suggestion and fixed $try_to_increase_memory_limit_to_32MB?

Thank you for the quick (and very sharp) reply! It helped me a lot.

You know your stuff :-)

/Asbjørn


Top
 Profile  
 
 Post subject:
PostPosted: 30. Aug 2009, 16:21 
Offline

Joined: 4. May 2009, 17:57
Posts: 13
I forgot to say that my memory limit now is 256M.


Thanks again,

/A


Top
 Profile  
 
 Post subject:
PostPosted: 30. Aug 2009, 22:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you are right - gdlib used the 32 MB and therefore it failed.

Have fun using TWG,
Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 79 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy