[REBOL] Re: resizing JPG images
From: carl:cybercraft at: 23-Oct-2001 9:09
On 23-Oct-01, Jose Manuel Alvarez wrote:
> 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)
Sigh - I hadn't checked the file size...
>> From: Carl Read <[carl--cybercraft--co--nz]>
>> Reply-To: [rebol-list--rebol--com]
>> To: [rebol-list--rebol--com]
>> Subject: [REBOL] Re: resizing JPG images
>> Date: Tue, 23 Oct 2001 00:55:42 +1200
>> On 22-Oct-01, Jose Manuel Alvarez wrote:
>>> What about resizing in a Core script without having to use View.
>> I don't think core can process images.
>>> View is the answer, how can I save the resized picture (sorry,
>> but I
>>> am View newbie !)
>> View can load JPGs (and GIFs and PNGs) but the only compressed
>> image format it can save in is PNG. For instant, cut and paste the
>> following five lines into the console...
>> 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]
>> and they should save a quarter-sized version of the bay image to
>> disk and then display both versions in a window.
>> Don't be afraid of using PNGs for your thumbnails. As they're a
>> loss-less image format they probably make better thumnails than