CGI-Scale photos without GUI

Josh Mellicker josh at dvcreators.net
Tue Mar 25 13:23:12 EDT 2008


There are image processing libraries, like ImageMagick and GD, that  
can live on a Linux server, and it probably wouldn't be too hard for a  
genius like André  or others to figure out how to pass image location  
and parameters to...


On Mar 23, 2008, at 1:32 PM, Sivakatirswami wrote:

> I would be interested in a runtime web app that takes incoming hi  
> res photos and generates a small version. Does anyone know if  
> references like the following will work in a CGI?
>
> put url "binfile:/httpdocs/incoming/photos/humungous.jpg" into image 1
>
> #scaling routine truncated for this discussion:
>
>  set the rect of image "currentImage" to 0,345,0,240
>
> create image "newImage"
> set the rect of image "newImage" to the rect of img "currentImage"
> set the imagedata of img "newImage" to the imageData of img  
> "CurrentImage"
> set the JPEGQuality to (fld "jpegSetting")
>  export image "newImage" to file gCurrentFolder & tImage as JPEG
>
> This works break on the GUI and is actually pretty speed relative to  
> Photoshop's own scaling, even with image quality set to "best".
>
> But I don't know if these are "abstract" objects (like a field or  
> custom property or stack script) that will work without a GUI. of  
> some interaction with a video card is required...
>
> tks
> Sivakatirswami
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list