From: Bob Harris on
In article <4bca9989$0$5363$c3e8da3(a)news.astraweb.com>,
JF Mezei <jfmezei.spamnot(a)vaxination.ca> wrote:

> pardon me for asking a Mac related question...
>
> A cousin has a vanilla Mac. She has photos in Iphoto. Those images are
> too big to be emailed.
>
> On a vanilla Mac, is there a way to downscale an image to a smaller size
> and save it on disk so that a browser can then upload the smaller file ?
>
> I know that when using MAIL.app, one can have MAIL automatically
> downscale images to "small" "medium" or "large" (original size). But if
> one is using web based email such as gmail, is there a way to do this ?
>
> (Failing this, I might just get her to connect to my server via AFP,
> move her original images to a directory on my server and I can then run
> a photoshop script to downscale all her images).

This is something I found on the web. Modify the width height
variables to your desired target size. Then just drag and drop
your pictures on the saved Applescript application.

-- save in Script Editor as Application
-- drag files to its icon in Finder

on open some_items
repeat with this_item in some_items
try
rescale_and_save(this_item)
end try
end repeat
end open


to rescale_and_save(this_item)
tell application "Image Events"
launch
set the target_width to 184
set the special_width_height to 240
-- open the image file
set this_image to open this_item

set typ to this_image's file type

copy dimensions of this_image to {current_width,
current_height}
if current_width is not equal to special_width_height and
current_height is not equal to special_width_height then
if current_width is greater than target_width then
scale this_image to size target_width
else
-- figure out new height
-- y2 = (y1 * x2) / x1
set the new_height to (current_height * target_width) /
current_width
scale this_image to size new_height
end if
end if

tell application "Finder" to set new_item to
(container of this_item as string) & "scaled." & (name of
this_item)
save this_image in new_item as typ

end tell
end rescale_and_save
From: JF Mezei on
Phillip Jones wrote:

> Open a Jpeg in Graphic converter and change sampling Rate from 300 DPI
> to 72 DPI and save as a slightly different name then compare size of
> file often it 2 to 2-1/2 times as small as the original.

Changing the (real) resolution of an image changes a couple of bytes in
the image header. The image size (number of pixels) does not change. It
just instructs the printer to generate an image that is smaller on paper.

From: Wayne C. Morris on
In article <4bcbfc55$0$9204$c3e8da3(a)news.astraweb.com>,
JF Mezei <jfmezei.spamnot(a)vaxination.ca> wrote:

> Phillip Jones wrote:
>
> > Open a Jpeg in Graphic converter and change sampling Rate from 300 DPI
> > to 72 DPI and save as a slightly different name then compare size of
> > file often it 2 to 2-1/2 times as small as the original.
>
> Changing the (real) resolution of an image changes a couple of bytes in
> the image header. The image size (number of pixels) does not change. It
> just instructs the printer to generate an image that is smaller on paper.

You're both half-right.

Resolution alone is meaningless. You also need to know either the image size
(number of pixels) or the logical (printed) size. When you change the
resolution, you must also decide whether you're changing the image size or the
logical size.

Graphic Converter's "Scale" and "Resolution" dialogs and PhotoShop's "Image
Size" dialog all have a checkbox which determines whether changing the
resolution affects the image size or the logical size.