Marc's Public Blog - Linux Hacking


All | Aquariums | Arduino | Btrfs | Cars | Cats | Clubbing | Computers | Dining | Diving | Electronics | Exercising | Festivals | Flying | Halloween | Hiking | Linux | Linuxha | Monuments | Museums | Outings | Public | Rc | Sciencemuseums | Solar | Tfsf | Trips

This page has a few of my blog entries about linux, but my main linux page is here
Picture of Linus


Table of Content for linux:

More pages: April 2023 March 2023 September 2021 May 2020 January 2020 January 2019 December 2018 March 2018 January 2018 September 2017 January 2017 October 2016 August 2016 July 2016 June 2016 March 2016 February 2016 January 2016 May 2015 March 2015 January 2015 October 2014 May 2014 April 2014 March 2014 January 2014 November 2013 September 2013 May 2013 March 2013 January 2013 December 2012 August 2012 May 2012 March 2012 January 2012 December 2011 August 2011 July 2011 January 2011 October 2010 August 2010 June 2010 April 2010 March 2010 January 2010 December 2009 November 2009 September 2009 August 2009 July 2009 May 2009 January 2009 December 2008 November 2008 October 2008 January 2008 November 2007 August 2007 July 2006 January 2006 August 2005 April 2005 November 2004 March 2004 February 2004



2013/03/16 Picture Size Upgrades Thanks Rig3 And Shell
π 2013-03-16 01:01 in Linux
So, I started my blog about 10 years ago now (not counting some old html posts that I backported to the blog with some fancy scripting at the time).

Back then, my pictures were 640x480 because of available bandwidth and screen width, but eh, things have improved. Now 1024x768 is not a big deal, and soon even bigger will be fine.
Thanks to Ralf's rig3, all my blog entries after August 2008 were trivial to change since all rig3 takes the original pictures and resizes them to the requested size. All I had to do was to change 640 to 800 and later 1024. It took mere minutes.

It however got complicated for anything before that. Those posts were done on blogger with pictures I hand resized, and named. Sometimes unfortunately the names didn't quite match the name of the picture of the gallery they came from, sometimes not all all, or sometimes the picture was 101_Flight.jpg and I have 7 pictures called that and no easy way to know which one the snapshot was taken from. So, I wrote some heuristics to use the blog date and try to match that with the picture directory date when there is one (they don't always match, but they're often close enough that a match is possible).
After doing that, looking for all the corner cases, hand renaming files that I didn't name right the first time, and running my script more times, I got to resize around 98% of the older pictures and blogs so that they are also 1024 for almost everything. Yeah!

While I was at it, I also got do redo my burning man posts that had measly 640x480 pictures and look much better with 1024 pictures:

  • BM 2002
  • BM 2003
  • BM 2004
  • BM 2005
  • BM 2006
  • BM 2007.
  • I'm also happy that all my older pictures from hiking and diving are in higher res now, like:

  • John Muir Trail backpacking trip
  • Old pictures of my first flight to Mammoth, my first trip to Whistler
  • Best of best of snow pictures
  • Paris Air Show at Le Bourget 2006
  • My first flight to Oshkosh in 2007
  • Dives from Malaysia/Sipadan
  • My first trip to the great barrier reef
  • My second trip to the great barrier reef

  • More pages: April 2023 March 2023 September 2021 May 2020 January 2020 January 2019 December 2018 March 2018 January 2018 September 2017 January 2017 October 2016 August 2016 July 2016 June 2016 March 2016 February 2016 January 2016 May 2015 March 2015 January 2015 October 2014 May 2014 April 2014 March 2014 January 2014 November 2013 September 2013 May 2013 March 2013 January 2013 December 2012 August 2012 May 2012 March 2012 January 2012 December 2011 August 2011 July 2011 January 2011 October 2010 August 2010 June 2010 April 2010 March 2010 January 2010 December 2009 November 2009 September 2009 August 2009 July 2009 May 2009 January 2009 December 2008 November 2008 October 2008 January 2008 November 2007 August 2007 July 2006 January 2006 August 2005 April 2005 November 2004 March 2004 February 2004

    Contact Email