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

[REBOL] Re: resizing JPG images

From: cybarite:sympatico:ca at: 20-Oct-2001 9:03

10/20/01 7:52:23 AM, "Jose Manuel Alvarez" <[jmalv--hotmail--com]> wrote:
>Does anybody have any sample code that show how to resize a JPG image to a >fixed pixel size
Maybe this is what you want: view layout [image (bay-peg: load %bay.jpg) 500x800] This loads it once so that it can be used again view layout [image bay-peg 100x100] And the image can be loaded from the internet via bay-peg: load view layout [image bay-peg 500x423] and the better version might be to use the REBOL caching capability bay-peg: load-thru/binary (Strangely the load and load-thru are different in that load-thru needs the binary refinement otherwise you get a less-than-satisfactory result.) Then after you have retrieved it and stored in your public cache, which you will be asked to agree to per the sandbox model, REBOL will use the cached version... so you can access it without being connected to the internet