Quote Originally Posted by DrByte View Post
It's probably croaking because your CLI isn't aware of the current path/cwd and thus isn't able to use those relative paths to find required resources. Fix your CLI ability to know where it's working from and use the appropriate includes_path, and you will likely have more success.

Although, why are you even loading application_top anyway? What specific Zen Cart capability do you need if you're making GD images?
The rest of the mod is an admin page that allows modifying/creating the images. I was trying to off-load that time spent in GD to be processed separately, with Zend_Queue to be specific.
Since it started as a zen cart admin module, most of the code I wrote has a lot of defines I wrote in the zen cart style. Mainly paths for images, and database tables.
I'll see what I can do with your suggestions.