I increased my PHP memory limit to 64M and now I get the same error but a new line in e2g.module.class.php
Line 1054: imagefill($pic, 0, 0, $bgc);
Decrease it to 32M and it goes back to line 1043.
For what it’s worth.
-
☆ A M B ☆
- 3,112 Posts
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
bundled (2.0.34 compatible)
EDIT: It’s definitely GD that’s the problem so I think you’re off the hook. I don’t suppose there is an option to use ImageMagick instead?
EDIT EDIT: NVM goldsky. I guess the problem was that I’m just a cheapskate. Upgraded RAM and set php mem limits unreasonably high. Everything works as expected now for hi-res digi cam photo uploads. Thanks for the help.
-
☆ A M B ☆
- 3,112 Posts
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
I had it up as high as 128M testing but I didn’t go too far above 4000x3000. Every image was different so I stopped getting too granular. I’ve since fine tuned it to 96M for my needs. From the equation above from the GD FAQ you can get an idea:
8000*8000*4 = 256M
4000*3000*4 = 48M
It didn’t seem to honor this equation strictly although. For the images I was using at 4000x3000 resolution it was somewhere above 64M for each one of roughly two dozen images.
ImageMagick has the same sort of equation only you can pass the QuantumDepth setting at compile time and get something like:
(QuantumDepth*Height*Width*5)/8
You can also use the limit memory flag on execution and it will switch to using I/O instead of memory at that limit, if you don’t mind the slower speed.
I don’t know enough about GD to know if it can do similar.
P.S. This may not sound like a lot to some but imagine a server with nearly three dozen sites, each with anywhere from 3-15 managers and who knows how many web users. All you’d need was some bad timing to cook up a recipe for disaster. GD could chew up 2G in memory easily.
I should also say that this is a GD problem and not necessarily an E2G problem. This could happen with that many users when the mcpuck browser tries to create thumbs out of hi-res images too. So, I’m not picking on this module. As a testament to how neat I think this module is, I’m still going to try and use it.
P.S.S. This could also be an ’I don’t have enough bread to toss at a big memory upgrade right now’ problem, just to be fair.
I can pass $_ssFile[’description’], $_ssFile[’title’], $_ssFile[’id’], etc. But how do I pass the tag and summary fields in a slideshow index?
I’ve tried $_ssFile[’tag’] and $_ssFile[’summary’] but they don’t work.
-
☆ A M B ☆
- 3,112 Posts
ow... I haven’t listed them.
I’ll make an update on this matter.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
I was going to try and use the tag field to link the big image link to a URL was why I was asking actually. So instead of getting the big image when they click the slideshow picture, it takes them to a page on the same site. I’ve tried landing page but I need a separate URL for each slideshow image. I’ve got it working using $_ssFile[’title’] and then naming the picture the same name as a friendly URL.
I’m thinking I could add a field called URL or something to the db in easy2_files. Although, I’m not sure how to get that from there to here so to speak when it comes to calling it in a slideshow index.
On another note some of the description calls in the slideshow index are wrapped in p tags. The description field tiny_mce editor adds its own p tags on save which results in nested p tags if you enter a description.