Hi!

Is it possible to do image resizing for browser output without 
saving it to file?

Example script:

print "Content-Type: image/png^/"

jpg: read/binary %/C/WWW/ROOT/rebol/IMG_4364.JPG

t1: load jpg

newsize: t1/size / 4

outl: layout [
    size newsize
    backdrop t1
]
; how to get rid of saving to file?
out-image: to-image outl
save/png %out-image.png out-image

png: read/binary %out-image.png

write-io system/ports/output png length? png


brgds
Janeks
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to