wp-logo-v-rgbIf your website or blog is running on WordPress (a popular web CMS),  and your pictures are being displayed on your pages by the NextGEN photo gallery plugin, it’s possible you’ll run into the problem of thumbnails not getting generated when uploading large images (=> 1 MB).

Depending on (1) how your web host has set default memory allocations for PHP applications, (2) the various software versions of the server stack, and (3) your own user application configuration settings, you might either get an error message such as

Follow thumbnails could not created. sample.jpg (Error: Exceed Memory limit. Require: 92.25 MByte)

or no message at all, with the same result of no thumbnails generated after an upload of images.

My system was running WordPress 3.1.1 with version 1.8.1 of NextGEN on a server (shared web hosting) running PHP 5.2.17 with an overall memory cap of 64 MB, a Maximum File Size (upload_max_filesize) of 10 MB, and with GD version 2.0.34. At any given time the memory usage was roughly 50% of the 64 MB limit.

In the above setup, NextGEN didn’t return an error message, but instead it went through the usual process of uploading each image, and then generating the thumbnails, with the progress bar aborting (fading out) just before completing the generation of the last thumbnail.

As it has been reported elsewhere online, this problem can be quickly solved by increasing memory usage allocation at a per-plugin level for PHP applications that require it. Here are the steps.

  1. Establish an FTP connection to your root WordPress directory
  2. Go to /wp-content/plugins/nextgen-gallery/lib/
  3. Open the file gd.thumbnail.inc.php with a text editor
  4. Find and un-comment (remove the // before it) the statement //@ini_set('memory_limit', '128M');
  5. Save the changes and upload the modified file
  6. Delete the image/s with no thumbnail and re-upload

If your usage needs require a higher than 128MB limit, try increasing it again to a higher amount.

I hope this helps you with the use of an otherwise excellent plugin that has made my life loading (from desktops & iPhone app), displaying, and managing picture galleries on WordPress a quite pleasant experience.

Tagged with:  

First hands on the iPad 2

On May 26, 2011, in Technology, by admin

The iPad 2 hits the marketplace and customers of all types and ages try it out at an Apple retail store in Maryland.

Tagged with:  

We’ve seen panorama add-ons for the iPhone before, but Kogeto’s offering is quite a bit more pocketable than other crowd-funded solutions. The Kogeto Dot snaps onto an iPhone 4 in your choice of pastel colors, and catches 360-degree video when placed face down.

It’s got an accompanying iOS app that will un-distort the video for sharing, or even broadcast it on the net in real time. We got to check out a prototype, and though there’s still some residual distortion at this point in time, we’re assured that it’ll all get straightened out if and when the project meets its funding goal.

Interestingly (and annoyingly), this implementation requires your iPhone be held perpendicular rather than upright, making previewing a capture virtually impossible until after you’ve stopped the recording, which seem a bit unnatural. Combine that with a minimum Kickstarter pledge of $98 to secure one of your own, and suddenly the less-portable and lower-degree alternatives start sounding a little more attractive.

Tagged with: