How to Reduce the File Size of a Picture 50% Using AppleScript

Photos have more megapixels than ever, which is great for viewing and terrible for sharing. Pictures have gotten massive! Fortunately, there’s a way to reduce the size of any picture by 50 percent.

This will make you more productive and save you lots of time having to manually reduce the size of a photo prior to sending.

Here’s what to do.

1. Open Apple Script Editor from Spotlight (the magnifying-glass icon in the top right-hand corner of your desktop).

Mac Spotlight.

2. Click New Document.

AppleScript Editor screen.

Copy and paste the following file:

set this_file to choose file without invisibles
	tell application "Image Events"
		-- start the Image Events application
		-- open the image file
		set this_image to open this_file
		-- perform action
		scale this_image by factor 0.5
		-- save the changes
		save this_image with icon
		-- purge the open image data
		close this_image
	end tell
on error >error_message
	display dialog error_message
end try

3. Click File / Save and save the script in your desired location.

Save menu.

4. Okay, now you’re ready. Let’s say you have a photo you want to use as your contacts picture, but it needs to be reduced since you can’t have 5,000 photos at 1.2 mb, like this one:

Sample photo.

5. Open the Script you just created by double-clicking on it and click Run.

Run icon.

6. Select the file and click Choose. The picture will automatically be reduced by 50 percent.

Same photo as above, but reduced in size.

Anytime you need to reduce a picture, you can pull out this script.

You can also edit the script and change the “scale this image by factor” setting to a higher or lower number if you want your picture smaller.

Duplicate contacts killing your productivity? See how Scrubly can help in this 100-second video.

Scrubly social-sharing menu.

Scrubly sign-up.