jwcalla
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Can’t generate thumbnailsAlright for kicks I decided to create an 800×600 jpg image, all black. The file size was 3,179 bytes. Tried to import it in NGG and got the same error when creating the thumbnail (A failure occurred [object XMLHttpRequest]).
So if it’s a memory issue I suppose it’s related to the image dimension rather than file size… well… in my case anyway.
I suppose all image manipulation should be done offline anyway and then uploaded to the server.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Can’t generate thumbnailsYeah I seem to get this error again when I have images over a certain size (dimension). I can do 800×531 but not 800×600.
I’m about ready to give up.
This is a great little feature and something that really helped me! Thanks for posting it.
The only suggestion I’d make is that for large galleries (like hundreds of photos or whatever), it’s going to place an img link to every single thumbnail in the set, even the ones not displayed on the current page. My browser downloads each one of these images and when there are hundreds it can slow load times down.
My workaround was to add an if-case and only print out the img link if it’s one of the thumbnails to be displayed on the current page.
So in step 3, in gallery.php, directly after sweigold’s changes, there is this code:
<div class="ngg-gallery-thumbnail" > <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /> </a> </div>and I changed it to this:
<div class="ngg-gallery-thumbnail" > <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <?php if ( $image->imageHidden == 0 ) { ?> <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /> <?php } ?> </a> </div>Hope that helps somebody.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Can’t generate thumbnailsI was struggling with the same problem for a bit but when I de-activated the “Yet Another Related Posts Plugin” (YARPP 3.0.4) I was able to get back to creating thumbnails. Not sure what the conflict is there.
Also, I’ve watched ‘top’ on my server while running the php script to create the thumbnails and the max memory used was 24M. My php memory limit is set to 40M.