[REBOL] image resizing
From: sags::apollo::lv at: 8-Jun-2006 0:20
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