crop jpg lossless

Samstag, November 19, 2011 - malenki at 19:55 in Software

At wikimedia commons I was hinted that lossless cropping of jpg files exist. Strange it didn’t come to my mind searching for something like that myself.

But the recommended tool cropgui has an at least unaesthetic flaw: the cropped image contains no EXIF data anymore.

Having had a second look at the site of the author I guessed he ran into the same ugly behaviour of jpegtran tools I hit myself some time ago:
Jpegtran discards all EXIF data if it is not explicitly told to keep them, which happens with the switch “-copy all”.

To fix this issue at the cropgui-script (until the author does it himself) just do the following:
in cropgui.py, replace the line

task.add([’nice’, ‘jpegtran’, ‘-crop’, cropspec, image_name], target)

with

task.add([’nice’, ‘jpegtran’, ‘-copy’, ‘all’, ‘-crop’, cropspec, image_name], target)

November - Pin-Up

Donnerstag, November 17, 2011 - malenki at 20:14 in Fahrrad/ bicycle, Bilder/ images

Fahrrad neben Windmühle vor Abenddämmerung / bicycle near wind turbine at dusk

neugierig

- malenki at 17:16 in Alltag/ daily stuff

Ich wüsste zu gern, ob meine Nachbarin ebenso freundlich zu mir wäre, wenn ihr Mann mich letztes Jahr nicht beinahe überfahren hätte.

curious

- malenki at 17:14 in Alltag/ daily stuff

I’d really like to know if my neighbour would be as friendly if her husband would not nearly had run me over with his car last year.

this years route

Montag, November 7, 2011 - malenki at 16:22 in Tour, Reise/ travel

Yesterday evening I put online the map of this years route.
The blue parts I went by bike or foot, the grey ones with motorised vehicles.