Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: resizing JPG images

From: jasonic:nomadics at: 22-Oct-2001 9:59

bay: load-thru/binary http://www.rebol.com/view/bay.jpg thumb-size: bay/size / 2 thumb-bay: to-image layout [origin 0x0 image bay thumb-size] save/png %thumb-bay.png thumb-bay view layout [image bay image thumb-bay] thanks for the example..
> The problem with this solution is the size of the thumbnail which is 17K > while the initial image is 8K (and a jpg thumbnail would be 3K)
hmm.. Yes this is problem for me too. And it looks like it can only be solved at the moment using installation-demanding external image processing tools [GIMP,ImageMagick, PIL=PythonImagingLibrary, or the excellent commercial MM Fireworks4 ] bay.png = 59kb a good looking JPEG version of same [80%] is only 9kb.. Image compresssion is an art and a science, but lack of any JPEG save control in REBOL/View really concerns me. Typical example: digital video still capture 640x480 BMP averages 240kb. A decent JPEG version of same: 40kb What to do? Are there problems/plans for REBOL/View to support JPEG? Recent loss of DSL service here [Rhythms bankruptcy] has made me painfully aware again of download sizes, and of REBOL's highly aeronautic design! - Jason