On that subject...
in Internet
The new web - Streaming, Personal, Social Magazines
Flipboard, Zite, Msgboy, Pulse, Taptu, Poptart,... MORE
Bill's Hierarchy of Social Media Content Appeal
So I'm experimenting with a new social media... MORE
"Invalid action type" on Facebook Social Plugins (such as Recommendations)
UPDATE as of 12PM EST: Facebook has apparently... MORE
Zuckerberg says Email isn't cool anymore.
I wonder if this means I won't have to help... MORE
Pardon me while I expound on weekend traffic for Public Media websites
I’ve been watching web traffic from my desk here... MORE
What are those links under the main search result listing in Google?
Ever wonder what the links under the main Google... MORE
Bill's Big Hypothetical Public Media Web Space Question
"What if I started a new public media web... MORE
POV's differ on Google's Oops, "warning visiting this web site may harm your computer!"
So I noticed that one of the hotter items being... MORE
The Haenel Website Doctrine
I recently had the opportunity to review the work... MORE
Building Successful Open Source Software OR maybe a community?
My good friend John Tynan from KJZZ in Arizona... MORE
Into Amish?
OK, I admit this post might just be a bit of a... MORE
What makes a web property valuable?
Through my work with a number of public... MORE
Webmonkey, I owe you
Remember Webmonkey? "The Web Developer's... MORE
I reviewed a product at Brookstone for 10 bucks
So I got this note from Brookstone after buying a... MORE
The greatest online marketing pitch ever!
This is my new favorite.It's the Washlet, and... MORE
Understanding the Plight of Internet Radio
After reading the Tuesday, March 6th edition of... MORE
Not Again! New Internet Radio Royalties
Sorry to those of you who did not sign up for... MORE
"What hath man wrought? And how will man use his miracles?"
"Billions of signals rush over the ocean floor... MORE
RSS & PBCore: Happily ever after
Still using the hell out of those colons in my... MORE
Public Media 2007: Better Living Through the Use of Colons in Your PowerPoint
Someone at the Public Media Conference who made... MORE
Public Media 2007, Pathetic Blogger
I really am a pathetic blogger. Not sure why, but... MORE
MySpace experiments, and other stuff
I'm going to try something new here at... MORE
Web Master Tidbits: Marketing is Managing and Meeting Client Expectations
As my second installment of Web Master Tidbits, ... MORE
Web Master Tidbits: The web as a timeless medium
I have a CMS called MySiteWorx!, a software that... MORE
NewsForge reports on PubForge/Public Media Manager
Recently I was interviewed by Stephen Feller from... MORE
Yahoo! News reports NPR is no longer "commercial-free"
Everyone knows how much I love public... MORE
OpenSSL on Windows XP: A Follow-up to Better HOWTOs
I don't write a whole lot of HOWTO stuff on this... MORE
Microsoft Point of Sale
Here's one to watch. Microsoft Point of... MORE
More on razor blades...
It seems some other folks (including the New York... MORE
Paid Content: On giving away razors in order to sell razor blades
When will they ever learn? I've been watching... MORE
Internet Radio In My Car
You heard it here first. Or maybe not. But this... MORE
Flash Splash
Recently, I've been requested by a prospective... MORE
Search Engine Tuning - No B.S.
I had the pleasure of reading the recent blog... MORE
Wireless Networking with Linux
If you've never tried it, you might want to wait... MORE
"There is no spoon..."
Mass Media: An ethical and socially acceptable... MORE
in Software
HOWTO: Make Google Chrome stop giving me a UAC warning (without editing the registry!)
I recently acquired an Asus T91MT convertible... MORE
Slow Printing from Windows XP on a Linux Printer
This one has driven me nuts for several years,... MORE
This ain't Hollywood
I haven't said much (at least not publicly) about... MORE
in Open Source
Dave Winer on Public Media folks
For me, one of the highlights about last week's... MORE
Using IH2 for ZenCart on a Plesk Server with ImageMagick 6.0.7
So I don't have much time to write here, but this took me some time to debug, and as a result I felt strongly compelled to share my findings with the few loyal readers I may have here at billhaenel.com.
I have a Plesk VPS server on which we host several sites. One of the sites we host there is a ZenCart-based shop. The ZenCart version installed is 1.3.8a.
We needed some good image handling for auto-resizing and such. We have a script that I created several years ago for this, but the Image Handler 2 add-on found at http://breakmyzencart.com/image-handler is just so much better than ours. Plus we had used it on several other shop sites, hosted at other servers with different configurations, and it worked flawlessly.
Apparently, the version of ImageMagick available for installation on our Plesk VPS is 6.0.7. 6.0.7 does not come equipped with the "-composite" directive for IM's "convert" comand. That directive is used by IH2 for layering and such when resizing images automagically. This is a big problem for those of us using IM on a Plesk VPS server.
The missing "-composite" component caused the entire resizing operation to fail, and subsequently the entire product display routine. Small hole that needs to be filled, IMHO.
The solution was to remove the ImageMagick convert path setting. This setting can be found in your store installation at includes/extra_configures/bmz_image_handler_conf.php, line 15, "$ihConf['im_convert']". Just set it to blank, or ''. Then be sure to set, in the same file, the $ihConf['gdlib'] variable to 1 or 2 (preferrably 2) as you're going to need it now that you've effectively trashed ImageMagick.
After turning off IM, I then ran into trouble with GD's memory usage. It was causing the script to crap out because it needed way more memory than was allocated (this is apprarently caused by the way GD handles uncompressed images or something...?). Anyway, this required a temporary configuration change within the load_imageGD() function in the ih_image class, found in file, includes/classes/bmz_image_handler.class.php, at line 615. To do this, I simply added the line, "ini_set('memory_limit','100M');" in as the first line within that function. That seemed to do the trick.
After all of that mess, it finally worked. It's really slow the first time you load a page with a lot of images, or the first time you load a product with one big original. It simply needs time to process and make that first cache. But once it's made, it goes much more quickly on subsequent page loads.
So, in summary:
- Turn off ImageMagick,
- Turn on GD,
- Set the script to use more memory,
- Run a first-time pageload to fill your cache before your client sees what you've done.