Make JPEG droplet

finderscreensnapz001.gif

This Mac OS X droplet converts any compatible image files into JPEGs. You can set the quality of the compression by changing the number in the filename. Make as many copies you need. I always have two on my desktop; one named Jpeg 60 and the other Jpeg 100.

The droplet accepts PhotoShop files and in fact anything with one of the following extensions: tif, tiff, png, pict, pct, pdf, bmp, eps, psd


Comments

45 comments so far
Leave a comment →

Show off!

Thats actually really useful, and quite simple in terms of what’s happening!

Simon Richardson
31 January 2008

1


[...] Clicca qui per visitare il sito dell’Autore. Aggiungi a del.icio.us 1 – Visite. ZN utilizza WordPress Revolution v5.0 basato su iTheme di N.Design Studio [...]

Make JPEG droplet
Pingback
7 June 2008

2


[...] Simon Heys » Make JPEG droplet (tags: Mac Software freeware image) [...]

links for 2008-06-08 « 语虚
Pingback
8 June 2008

3


There is no sopurce code in archive :((

Just wanting to know how yoiu make this working

Aris
23 June 2008

4


Sorry Aris – try downloading again, the source file is now included. Hope you find it useful.

Simon Heys
23 June 2008

5


This is amazingly helpful. Is it possible to make one that resizes the image to a user-definable size? So you could then just drop a file, and make a compressed file at, say, 1000px on its longest side.

It would make saving for web much easier!

Billy
23 August 2008

6


[...] JPG Droplet App – makes a JPG from lots of different files (very useful for bloggers :) [...]

/blog » Blog Archive » A Lot To Offer
Pingback
7 September 2008

7


Hi Simon,
Great little app (in fact I like all the stuff on your site!)

Querstion: Is there any way of controlling the dpi resolution? I really need 72 dpi and your droplet appears only to spit out at 150.

Nice work!
Joe

Joe
6 October 2008

8


Hi Joe

You can force the output dpi by editing the source code. Just add:

-s dpiHeight 72.0 -s dpiWidth 72.0

to the sips command. I’ve mailed you a version with this addition.

Simon Heys
6 October 2008

9


Hi Simon,

I’ve tried this excellent application. It’s does what it’s supposed to. Except for two things.

1. The Finder preview/icon has a black background (minor problem, but made my heart jump)
2. It throws away the clipping path (this is a major problem, would it be possible to fix it?)

This would be a very useful application for us if it weren’t for those things.

Good work!
/rpo

Urpo
24 October 2008

10


Hi Urpo – preview icon is easily fixed, but I don’t think the method I am using supports clipping paths.

Neither are issues for me since I tend to use Adobe Bridge instead of the Finder (far better than icon previews), and I don’t use clipping paths at all…sorry! If you need some specific functioanlity as part of your workflow let me know and I’ll see what I can do. Anything is possible.

Simon Heys
24 October 2008

11


Hi Simon, thanks for this great script. I generate a lot of screen shots for posting to the Coppermine Gallery Support Forum and this will really come in handy. As an added feature, do you think adding a copyright notice to the image is doable? Thanks again! Billy

Billy
26 October 2008

12


Hi Billy – Sorry to say that the method being used here doesn’t allow watermarking images. A quick Google turned up this which might be of use.

Simon Heys
27 October 2008

13


Hi Simon, it seems to be a great job but it doesn’t work with my .eps files…maybe it’s me doing sthg wrong…help plz!!! Why don’t u put a pdf guide in the downloadable archive? Another thing: could u pls send me the same 72dpi version u already sent to Joe on October 6? Thx a lot! Max

Max
26 November 2008

14


Hi Simon,

A silly question. I am mac based and generally only have the option to save in jpeg or tiff format in photoshop. This plays havoc when I supply images to my web designers. Is there mac based software so I can save a psd or jpeg file as jpg and gif?

Kind Regards, Rod

Rod
13 December 2008

15


Hi Rod

If you have Photoshop then you’re all set. Just go to the File menu and choose Save for Web. You can then export a JPEG (same as JPG) or GIF.

Best, Simon

Simon Heys
16 December 2008

16


This is ALMOST what I need!

But the droplet accepts all fileformats … EXCEPT jpg/jpeg.

If you could make these acceptable as well, then I can convert my hi-compressed jpg’s into any quality of compression.

Is this possible (in the near future)?

Thanks in advance,

Sanne, Netherlands

Sanne
14 April 2009

17


[...] does the first page. To this end, there is a convenient droplet that uses the sip command called MakeJpeg, but the first page problem remained. Well, I’d forgotten that there is a Libre program [...]

Convert PDF to JPEG on OS X « Le Blog de Maurice
Pingback
23 April 2009

18


Excellent Post, thanx for sharing

Ge Studio
23 April 2009

19


How can I make my own Tag and make it a jpeg? Would like to post it on my Tagged.

Thanks

Janette
15 June 2009

20


Hi Simon

Great script, and thanks for posting it. However I’m wondering if you can help… I too would like to be able to change the resolution of the output image. I managed to put the sips dpiHeight/Width command into the script, but this only seems to change the pixel aspect ratio, not the actual image resolution.

Any idea how I can get a 72dpi image out from this, or am I being stupid?

Many thanks indeed for any help.
Patrick

Patrick
16 July 2009

21


Hi Patrick

You are correct. Changing the dpi in the sips command will not resample the image. It just changes the dpi information and the number of pixels in the image remains the same.

It is possible to change the script to support resampling. This would involve running an initial sips command to interrogate the image dpi, width and height and gathering the results into variables. You would then calculate the new width and height based on target dpi, then run the sips command to process the image.

I’d be really pleased for someone to have a go at this, it’s on my ‘todo’ list but quite far down…

Simon

Simon Heys
17 July 2009

22


Aha – interesting. I think however, that would be slightly beyond my clumsy script-hacking abilities…
Thanks for letting me know.
P

Patrick
18 July 2009

23


sips throws away the clipping path, is it so?
Imagemagick does not.

excelent work :-)

ps
droplet working with folder contents/structures could be whery usefull

grozan
26 July 2009

24


Nice script… any idea why it doesn’t work under Snow Leopard? I’ve been looking here, but I’m not much of an applescripter: http://lists.apple.com/archives/applescript-users/2009/Sep/msg00160.html

kais
25 September 2009

25


Hi kais – it works fine for me in Snow Leopard. Please mail me if you are getting some kind of error.

Simon Heys
26 September 2009

26


Hi Simon,
(and all,)

As a little feature of this FileMaker Pro app I wrote quite some time ago, I have basically an analogue script for resizing images while uploading them tot the database and a website.

But I am having trouble at displaying pictures at any other resolution than 72.0 dpi in FileMaker (they show up fine on the web) and it looks like it is resolution-related.
Your suggestion :

It is possible to change the script to support resampling. This would involve running an initial sips command to interrogate the image dpi, width and height and gathering the results into variables. You would then calculate the new width and height based on target dpi, then run the sips command to process the image.

looks quite interesting & promising, but I can’t “grep” it. Care to elaborate ?
I have the interrogation part covered, my problem is in the resampling (there’s no resampleResolution in man sips and setProperty dpiWidth/Height doesn’t seem to affect it)

I’d be really pleased for someone to have a go at this, it’s on my ‘todo’ list but quite far down…

I’d be quite happy to oblige…

charlie
24 November 2009

27


Very useful!
Thanks Simon!

Fabrizio Schiavi
19 January 2010

28


Thanks Simon,

great simple tool, just what I was looking for.

Henning
8 September 2010

29


Hi Simon, I’ve ran into an interesting problem, and have not yet found a solution to it (not sure there is one!). When using the SIPS command, it crops the image. For example, I work at a law firm and am taking multi-page PDFs to single page TIFFs (or JPGs) and have been searching the web for several days looking for a decent solution when I found yours. I ran it, and it worked like a champ, but it also cropped portions of the page off, not just shrunk it.

Any thoughts as to why SIPS would do that?

Thanks,

K

Kevin
29 October 2010

30


Kevin – not sure about this and haven’t looked into it. I don’t know the inner workings of SIPS. A couple of thoughts; might be that SIPS is choosing the wrong media box to crop to, or maybe it’s using an embedded preview image form the PDF which is already the wrong crop. So I’d suggest checking the media boxes in your PDFs, and also checking the preview images. Good luck, Simon

Simon Heys
3 November 2010

31


Hey Simon– I have solved the challenge. If there is no background (as shown under Preview/Show Background), then it will cut those areas. My PDFs had that issue where there was a border with no background and so SIPS cut it off. It’s something built into SIPS and what SIPS does. The droplet works wonderful! Thanks much!

K

Kevin
3 November 2010

32


This droplet is unbelievably useful, and just plain awesome. Thank you for unleashing it on the world.

justin miller
11 March 2011

33


Excellent program. Do you plan to make this app Universal or Intel based before Lion arrives?

Thanks!

Frank
2 July 2011

34


Hi Frank – I use this app almost every day, so will definitely make sure it works with Lion once I make the switch. Best, Simon

Simon Heys
4 July 2011

35


Dude you just save me hours of work!

Camilo Bejarano
29 July 2011

36


Not working on Lion anymore… is it possible to create a compatible version? I always loved these droplets – saved me hours and hours …

simon
23 August 2011

37


Thanks for reminding me – I’ve recompiled the source in Lion and added it at the top of the page.

Simon Heys
23 August 2011

38


Very interesting. Thank you for this work.

“You can force the output dpi by editing the source code.”

Here’s an uneducated fellow’s guess: this seems to only change the relevant JFIF field — amongst others, the Photoshop [Image:Image Size] dialog box [Resolution] uses the EXIF property, which remains unaltered. In the case of existing JPEG files, when using SIPS from the Terminal command line, the file is rewritten (recompressed) unlike some “lossless rotation” routines, with additional unwanted side effects in my case.

The search continues for a way to change the resolution (pixel density for printing or DPI) without otherwise changing the file. All this because TextEdit v.1.6 renders image files dependent upon their EXIF DPI and there seems no other way to change the image size in a TextEdit document without radical destructive editing to the original image file. Even manually editing the Rich Text code (sizes in twips, naturally) seems to have no effect.

My brain is starting to hurt.

Ian Scott-Parker
20 September 2011

39


Hi Ian, thanks for your comment. I think you are correct, in fact I half remember having a long email conversation with someone about this very issue. At one point we thought we had found a solution, only to realise it did not work. I don’t think it’s trivial to modify this script to resize and resample in the expected way.

If I thought there was enough demand, I could write a native Objective-C droplet to do the work instead. Could be a project for a rainy day.

Simon Heys
21 September 2011

40


Thanks so much for this Saved me some time in having to create it myself. Good work – exactly what I was looking for.

JJ Sereday
31 December 2011

41


OMG you just saved my life with the make jpeg droplet.
Do you know HOW MUCH TIME i lose converting png to jpg? This is a godsend!!

Steven Chu
28 March 2012

42


Great! Thanks!

on
11 April 2012

43


Simon, this saves me time on a daily basis.

I would kiss you on the mouth if I were able.

Thank you Simon, thank God!

Nick
8 November 2012

44


Amazing work. Thank you for this!

Justin Cone
6 February 2013

45