On Thu, 2009-04-30 at 23:35 -0700, Michael A. Peters wrote:
> Here's the scenario -
> 
> Website has some demonstrative images.
> 
> I create these images with the gimp - starting with a jpeg, adding a few 
> text layers and straight lines.
> 
> I then save as xcf in case I ever need to edit.
> 
> Then I export to jpeg, resize for thumb and export to jpeg again.
> 
> Admin interface to my web face needs to allow for upload of image.
> 
> What would be sweet is if I could just upload the gimp xcf in these 
> cases, and have ImageMagick do the export to jpeg and thumbnail creation.
> 
> Advantage of doing it this way - it will allow me to keep the original 
> xcf on the server along with the generated images.
> 
> Issues -
> 
> I'd rather not have any code that spawns a shell, so I can only do this 
> if the pecl imageMagick module is up to snuff for xcf->jpeg conversion. 
> Anyone used it? Looks like I'll have to compile it, before I do that I 
> would like to know if it even is up to the task.
> 
> Second possible issue - I don't know how well imageMagick can deal with 
> an xcf file that uses text layer / fonts. I assume I'll have to install 
> the font used on the server (Adobe New Century Schoolbook Type 1 - yes, 
> I have license for it), but if so, how would I specify to ImageMagick 
> the font path?
> 
> Anyone done this sort of thing?
> 
> I may just do the export on my home box via gimp and just scp the xcf to 
> the server so a copy is stored there as well, but it would be nice to 
> just stick the xcf into a file upload field and just have php do the rest.
> 
Do the text layers have to go beneath something on the original xcf, or
have special effects applied to them? If not, you can add t existing
images with GD, by using a source image, adding text layers, etc, and
then exporting it as a new graphic.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to