Framing jpeg images for Flickr

This is an Apple­script I wrote a cou­ple of years ago to resize and frame Jpeg images exported from Pho­to­shop (for exam­ple) for Flickr.

The script relies on the ‘con­vert’ util­ity from the ImageMag­ick (imagemagick.org) library. It puts a [black] frame around the out­side of the image, after resiz­ing the image to a max­i­mum of 1600px on the longest side. The frame dis­plays an arbi­trary string at the top left cor­ner (e.g. for copyright).

The script will embed an sRGB ICC-profile in the resized Jpeg. I use ProPhoto for my Pho­to­shop work­ing space. But this is a much wider gamut than most mon­i­tors will dis­play. Most web browsers will dis­tort col­ors using that, much-wider, color gamut. So it is bet­ter to spec­ify a recent ver­sion of the sRGB pro­file for the image. You can find sRGB color pro­files here at the ICC website.

Finally, the script sharp­ens the resized image just a lit­tle and saves it as a renamed image in the same direc­tory as the original.

I hope you find it use­ful. The script includes instruc­tions, includ­ing on the best way to install ImageMagick.


Save PDF annotations to a notes file

If you are a researcher then you prob­a­bly anno­tate PDFs of papers and other stuff. If, like me, you work in the Apple/OSX envi­ron­ment you may be using Skim to read and anno­tate. Skim allows you to save the anno­ta­tions in their own ‘side­car’ file for­mat and to copy/paste the text of the anno­ta­tions. But […]


Draft history of ICC: final chapters

Last year, I com­pleted the man­u­script of a cen­ten­nial his­tory of the Inter­na­tional Cham­ber of Com­merce (ICC). It’s a long work: 400 pages, more or less. It will be only the sec­ond his­tory of this remark­able insti­tu­tion. The first was pub­lished in 1938. ICC com­mis­sioned the his­tory in 2013, but has recently decided to wait until […]


The Wallenbergs at the ICC

Peter Wal­len­berg, the scion of the great Swedish fam­ily of bankers and indus­tri­al­ists, died on 19 Jan­u­ary aged 88. Among his many achieve­ments was to lead the Inter­na­tional Cham­ber of Com­merce (ICC) dur­ing the most dif­fi­cult period for busi­ness in the late 20th Cen­tury. Here is a sum­mary of the story. There’s a lit­tle more in […]


Can multilateralism be revived?

Shawn Don­nan at the FT says that it needs a health­ier life-style. Mul­ti­lat­er­al­ism is weaker than it has ever been. But, in trade, it has never been as robust as it seemed on the sur­face. For now, I doubt there is a rea­son­able prospect it can be revived in its orig­i­nal form. Instead, we should […]


Is a plurilateral the ‘way out’ for WTO on agriculture?

Q: under what cir­cum­stances would a critical-mass (CM) pluri­lat­eral agree­ment on agri­cul­ture be a way “out of the mess” in the WTO agri­cul­ture nego­ti­a­tions? A: any CM pluri­lat­eral works as a “way out” of the WTO stale­mate where it offers a degree of ben­e­fits to the mem­bers of the pluri­lat­eral agree­ment such that they were […]


Evaluation of a “Critical Mass” agreement on agriculture

The stale­mate in Geneva on the Decem­ber 2013 Bali Agree­ment con­cern­ing both Trade Facil­i­a­tion and agri­cul­ture sub­si­dies has revived some inter­est in the poten­tial for a pluri­lat­eral agree­ment on Agri­cul­ture among WTO mem­bers. I attach to this brief post a pre-print of the sum­mary that Andy Stoler and I wrote for the jour­nal Global Governance […]