Page 1 of 1

MacOS X Image Resizer – Right click images to resize and/or email

MacOS X Image Resizer – Right click images to resize and/or email
   10

For those of us coming from the Windows platform, that have used the Image Resizer PowerToys for Windows XP (yeah I know: from way back in the day), here a free application for MacOS X users to have that same functionality as well.

Simply right click an image, choose the desired size and your images will be resized automatically without modifying the original file.

I’ve expended the functionality a little bit, by adding the option to convert a Retina image straight to “classic” (50% size reduction) and after resizing the option to automatically attach the resized images to an email, ready to be send to friends and family …




Windows XP PowerToys – Image Resizer

Back in the day, my favorite PowerToy was the Image Resizer. PowerToys were small applications offered for free by Microsoft offering slick and easy to use “toys” that could make your daily work just easier.

The Image Resizer allowed quick resizing of pictures, something I still miss as a standard part of Windows 7, Windows 8, and yes also under MacOS X.

For those interested, Image Resizer can still be downloaded:

 

Finding a version for MacOS X was harder than expected, and while playing with Apple Automator and AppleScript, I decided to create my own application that would achieve the same …

Resize eMail Picture(s)

Being new to AppleScript and Automator, my little app (only 7 Kb!) is not an exact clone of the original Windows XP Image Resizer PowerToy, but it does offer the same functionality. It probably will not win a beauty contest when it comes to the user interface, I was limited by the capabilities of Automator and in my experience in using it …

The little service allows you to right click one or more images to resize them: 

  • Mini (320 pixels)
  • Small (640 pixels)
  • Medium (800 pixels)
  • Large (1024 pixels)
  • Larger (1280 pixels or 720p)
  • Big (1920 pixels or 1080p)
  • Retina to Classic (50% size reduction)
  • Do not resize (for use if you only want to email the pictures)

 

The indicated pixels is the maximum width and maximum height.

When resizing a picture, a copy of the original will be made, with a prefix in the filename to indicate it’s new size.
The original image will not be modified, and the new image will be stored in the same format – so JPEG remains a JPEG.

If you selected “Do not resize”, no extra files will be created of course.

After resizing you can optionally choose to have all these resized image to automatically be attached to a new email, making it easier to quickly send some (optionally) resized pictures to friends or family.

  Keep in mind that this service only works with Apple Mail when using the “mail as attachment” option …

Download and Install

Select the version appropriate for your macOS version!

For Big Sur, the original method to attach images to an email simply froze Apple Mail.

For Mojave and Catalina, apple changed the Mail.app icon filename, and changed some path behaviors.
For Catalina, some of the AppleScript functions changed.

The ZIP file either includes a PKG file or WORKFLOW file, which one needs to double click to install the script.

Big Sur and Catalina Errors – Update your Security Settings … 

Under Big Sur, and certain Catalina versions, the script will fail to resize images.
This is due to the increased security precautions implemented in macOS.
You’ll get an error something in the lines of:

The action “Run AppleScript” encountered an error: “Image Events got an error: image “<imagename>” doesn’t understand the “save” message”.

Unfortunately, Apple did not make the new security settings easy. For disk access, adding the resize script (which would be more appropriate) doesn’t work. So you’ll have to add the “Image Event” instead.

Add /System/Library/CoreServices/Image Events to System Preferences Security & Privacy Privacy Full Disk Access.

 

Download - Resize-eMail-Pictures-for-Big-Sur.zip 

Filename:  Resize-eMail-Pictures-for-Big-Sur.zip
Platform:  Apple macOS
Version:  1.0.4
File size:  172.3 kB
Date:  2020-12-29
 Download Now  Send me a cup of Coffee    

Download - Resize eMail Picture(s) (Catalina en Mojave) 

Filename:  Resize-eMail-Pictures-for-Catalina-and-Mojave.zip
Platform:  Apple macOS
Version:  1.0.3
File size:  22.2 kB
Date:  2019-10-16
 Download Now  Send me a cup of Coffee    

Download - Resize EMail Pictures 

Filename:  Resize-eMail-Pictures-pre-Mojave.pkg
Platform:  Apple macOS
Version:  1.0.1
File size:  4.3 kB
Date:  2014-02-26
 Download Now  Send me a cup of Coffee    

Download - Resize And Email Picture (Yosemite Version) 

Filename:  Resize-Email-Pictures-for-Yosemite.pkg
Platform:  Apple macOS
Version:  1.0.2
File size:  95.1 kB
Date:  2014-08-24
 Download Now  Send me a cup of Coffee    

The installer works like any other installer on the Mac, and the script will be copied in the /Library/Services  directory, so it will be available for all users.

Uninstall

To remove this application, simply delete the file Resize eMail Picture(s).workflow from the /Library/Services  directory.

Usage

Big Sur

Big Sur users will find this script under “Quick Actions“.
You can enable/disable/locate the script from     System Preferences Extensions  Finder.

Image Resizer in Big Sur - Under Quick Actions

Image Resizer in Big Sur – Under Quick Actions

Older macOS versions

Using this service is simple: right click one or more images and select from the “Services” menu the option “Resize eMail Picture(s)“.

MacOS X Service - Resize and/or eMail Picture(s)

MacOS X Service – Resize and/or eMail Picture(s)

A small window will popup allowing you to select the desired maximum resolution.

  The option “Do not resize” allows you to attach one or more images, unaltered, to an email.
  The “Retina to classic (50%)” option resizes a Retina screenshot (for example) to the regular non-Retina resolution.

Resize Image - Select maximum width/height

Resize Image – Select maximum width/height

You can double click the preferred option, or single click your preferred option followed by a click on the “Select” button.

Each selected file will now by copied and resized (unless you choose “Do not resize”). Depending on the selected size, a prefix will be added to the file name so you can easily identify the ones that you’ve resized.

As you can see in the example below:
I selected 3 files and had them resized to “Medium”, which resulted in 3 copies with the prefix “Medium”. The original files remain untouched.

Some example files after resizing

Some example files after resizing

After making your selection a dialog will popup, asking you if you’d like to attached the resized (even if you picked “Do not resize”) to a new email.

If you select “Yes” (default is “No thanks” which will be selected when you press the Enter key), a new email will open with the pictures attached to it.

Would you like to attach the resized images to a new email?

Would you like to attach the resized images to a new email?

Example of a new email with 3 pictures attached

Example of a new email with 3 pictures attached

Support Us ...


Your support is very much appreciated, and can be as easy as sharing a link to my website with others, or on social media.

Support can also be done by sponsoring me, and even that can be free (e.g. shop at Amazon).
Any funds received from your support will be used for web-hosting expenses, project hardware and software, coffee, etc.

Thank you very much for those that have shown support already!
It's truly amazing to see that folks like my articles and small applications.

Please note that clicking affiliate links, like the ones from Amazon, may result in a small commission for us - which we highly appreciate as well.

Comments


There are 10 comments. You can read them below.
You can post your own comments by using the form below, or reply to existing comments by using the "Reply" button.

  • Feb 26, 2014 - 5:53 PM - hans Comment Link

    Tiny update … this app is now also visible in the services menu of Path Finder

    Reply

    hans

  • Aug 24, 2014 - 2:01 PM - hans - Author: Comment Link

    UPDATE:

    In Yosemite, Apple decided to change the icon location/name, which causes an error message.
    A specific Yosemite (MacOS X 10.10) is made available under the downloads in the article above.

    Reply

    hans

  • Oct 16, 2019 - 4:43 AM - hans - Author: Comment Link

    UPDATE:

    Today I released a version specifically for Catalina (works under Mojave as well).

    Installation: unzip, double click .workflow file.
    During first run your Mac will ask for permission to rename files and/or access Mail.

    Reply

    hans

  • Feb 26, 2020 - 10:37 AM - E C Comment Link

    Love this! I was looking for something like this.

    However, the generated images are bigger than the larger original versions. I thought the smaller converted versions would be smaller in file size.

    Anything you can do to fix this? Thanks!

    Reply

    E C

    • Feb 28, 2020 - 4:14 AM - Hans - Author: Comment Link

      Hi EC!

      Glad you like this little script.
      Ehm, did you mean the actual file size (eg. the number of bytes)?
      I haven’t paid attention to that actually … I usually throw my images through ImageOptim to compress them better without losing quality.

      I’ll take a look and see why the resulting file size ends up being bigger – that is not what I’d expect.
      What type of image (jpg/png/etc) are you resizing?

      Reply

      Hans

  • Feb 29, 2020 - 10:58 AM - Hans - Author: Comment Link

    After creating a version for Catalina, I had to find out the hard way that the next release of Cataline (10.15.3) broke Automator again.
    For now I’m giving up – if there is an interest in it, then I can try to build a dedicated application for this purpose.

    Just FYI:

    1) 10.15.3 has some serious issues when it comes to Apple’s “new and improved” security. Full Disk Access prevents Automator to do what it is supposed to do and adding Automator (and/or Core services) to Full Disk Access is probably not a good idea …

    2) Seems Apple scrapped the Automator team in 2016 … so Automator, at best, is in maintenance mode (eg. nothing new to be expected there).

    Reply

    Hans

  • Aug 9, 2020 - 4:42 PM - Adrian Boeing Comment Link

    The script gives me this error on OSX Catalina 10.15.6:

    The action “Run AppleScript” encountered an error: “Image Events got an error: image “(INSERTNAME)” doesn’t understand the “save” message.”

    Any fix for this?

    Reply

    Adrian Boeing

    • Aug 10, 2020 - 3:01 AM - Hans - Author: Comment Link

      Hi Adrian,

      I’ve just downloaded and installed the Catalina version (1st download in the list).
      Simply extracted the workflow file, double clicked it, where it asked me to install or run (select “install”).
      Next I right clicked a picture, in Finder, and selected from the “Quick Actions” menu, the “Resize email picture(s) Catalina”.
      It worked as expected and resized.

      I’m running Catalina 10.15.6 as well. So I’m unable to reproduce the error.
      Could it be that you ran the script directly (eg. not by right clicking an image)? Or maybe downloaded the wrong version?

      Reply

      Hans

    • Dec 28, 2020 - 7:11 AM - Hans - Author: Comment Link

      I’m running into this problem with Big Sur now as well.

      Fix: Add the following file to  ->  System Preferences -> Security & Privacy -> Privacy -> Full Disk Access:

      /System/Library/CoreServices/Image Events.app

      Unfortunately, Apple did not make this easy, since adding the resize script (which would be more appropriate) to Full Disk Access doesn’t work. So you’ll have to add the “Image Event” instead.

      Reply

      Hans

  • Dec 28, 2020 - 8:11 AM - Hans - Author: Comment Link

    UPDATE:

    Today I released an updated version for Big Sur.
    I’ve also added instructions on how to prevent an AppleScript error.

    Reply

    Hans



Your Comment …

Do not post large files here (like source codes, log files or config files). Please use the Forum for that purpose.

Please share:
*
*
Notify me about new comments (email).
       You can also use your RSS reader to track comments.


Tweaking4All uses the free Gravatar service for Avatar display.
Tweaking4All will never share your email address with others.