Archive for the ‘photography’ Category

Uploading to Flickr from Picasa on Linux

Sunday, December 14th, 2008

When I performed my search for the perfect photo sharing solution, I fell in love with the Picasa desktop application. I even discovered that there is a linux version. However, as you’d likely expect, it didn’t really play nice as far as uploading photos to any photo sharing site other than Google’s Picasa Web Albums.

On windows, there is a great solution called picasa2flickr which passes the desired photo’s to the windows Flickr Uploader. Again, for obvious reasons, this doesn’t work well on linux.

So, having determined that it wasn’t worth my time to pursue trying to get Flickr uploads working from Picasa on Linux, I started evaluating many of the other native options on linux, such as digikam and fspot. While these more easily uploaded to Flickr, and had open API’s, none of them worked quite the way I wanted, so I abandoned my search for a good solution.

Then, on a whim I did a Google search just a couple hours after Andy O’Neill made a blog post about a button he wrote to import photos to Flickr from the Linux version of Picasa, named picflick.

I eagerly (re)installed Picasa3 on my Gentoo box using a beta ebuild found here. Then installed his button.

After playing with it for a bit, I realized a few things didn’t quite jive for me.

1) The script automatically resizes the image before uploading it to Flickr. I prefer to upload all of my images at their original resolution, so this was a bit of a road block for me.

2) The script used a Perl module to upload to Flickr. For the life of me, I couldn’t seem to figure out how to get it authorized with my Flickr account to actually permit uploads. I’m sure if I spent a bit more time and read a few more manuals I could have gotten it right, but it didn’t quite work “out-of-the-box” for me.

3) I’d prefer to see the progress being made, rather than the beeps and tray notifications that Andy’s script provided.

So, I stole the key part of his script, the part which translates Windows paths to *nix ones, and broke down the rest to simply pass the photos on to my preferred linux Flickr uploader, KFlickr

Here’s the contents of my script, including the win2native function written by Andy.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
 
DEBUG=1     # debug to $LOG
LOG=/tmp/picflick.log
PICASA_WINE_DIR="$HOME/.google\/picasa\/3.0\/drive_c"  # Relative to $HOME
PICASA_WINE_DIR_NATIVE=`echo $PICASA_WINE_DIR |sed 's|\\\\||g'`
 
function debug() {
        if [ $DEBUG -eq 1 ]; then
                echo "$*" >> $LOG
        fi
}
 
# wine2native(): convert wine filename to native linux filenames
# Arguments: _name_ of variable which holds path
# Example: wine2native file  # not wine2native $file
function wine2native() {
        VAR=$1
        eval "VAL=\$$1"
        debug "Wine path: $VAL"
        # use '|' to delimit the paths
        VAL=`echo "$VAL" | \
                sed "s|C:|$PICASA_WINE_DIR|" | \
                sed 's|\\\\|/|g'`
        debug "Source file: $VAL"
        eval "$VAR=\$VAL"
}
 
# check we have the required dependencies
which kflickr > /dev/null || die "You need to install kflickr"
 
file=$1
wine2native file
DIR=`dirname "$file"`
EXT=${file##*.}
debug "START_UPLOAD"
for file in "$@"; do
        wine2native file
        KFLICKR="$KFLICKR $file"
done
 
debug "Launching kflickr with the following args $KFLICKR"
kflickr $KFLICKR
 
debug "Done"

Now when I click the “Flickr” button in Picasa, it brings up the KFlickr app with all the pictures I selected ready to upload. Thanks for the inspiration, and code bits to make this work Andy, I was too lazy to actually figure out what was necessary to pull the image paths from Picasa and use them.

Fun with moonlight

Thursday, October 16th, 2008

dsc_0049.jpg

The other night, I couldn’t resist the urge to capture this image. The moon was shining brightly through our bathroom window casting the shadow of the tree and fence(s) behind our apartment.

This was the photo I liked the most, but you can see all the shots I took over at Flickr

Photo Sharing Services

Thursday, September 25th, 2008

Since I became a dad, and bought a dSLR I’ve been trying to figure out the best way to store and share my pictures of my son, and other interesting stuff I shoot. As far as securely storing it locally, I have a sizable RAID setup that handles redundantly storing my pictures on two drives, but it’s the sharing part that I’ve had some trouble with.

Initially, I was using my own web host and the rather nice PHP based SPGM photo gallery software. The problem though, is that it’s fairly tedious to resize and upload the images (I wrote a whole blog post about it here), and I have “only” 20GB of storage and 500GB monthly throughput. When shooting at 10 megapixels I could fill that space up quickly. Beyond that I knew that some of the web based sharing sites out there had some really cool features for sharing and organizing your photos.

So, the search begins. I had some (I thought) fairly simple requirements. I was hoping to have these requirements met by a free solution, but I was willing to pay a nominal subscription fee if I got everything I was after. Here’s the run-down of what was important to me.

  • Ability to upload original sized images. Some services have a limit to the size of each image
  • Unlimited storage/uploads
  • Sophisticated organization features. This means unlimited “albums” and the ability to have an “album” hierarchy and probably some other stuff that the service would surprise me with
  • Ability to use my images on my website, blog, forum posts, etc.
  • Ability to have a gallery on my site which displays all of the public images from the photo sharing site

That’s a fairly short list, and seems as though it should be fairly easy to match but surprisingly it isn’t.

So let’s break down the services I tried and how they stack up. First, let me say that I did not try every service out there, I ruled some out just based on their feature set, some due to their obscurity etc. Listed here are just the ones that I either discovered myself, or were directly suggested to me. If you want to do your own search and want to see all of the services available, here are a couple links that I found useful during my search.

Top Ten Reviews
CNET Reviews

Picasa

This was a fairly natural choice for me since I’m a pretty heavy user of Google services. I use Gmail, Google Reader, Google Analytics, Google Calendar, Blogger (switched from blogger to wordpress), Google Docs, and YouTube. Additionally, Picasa has a great desktop tool for uploading photos that acts as a great photo management tool on your local system as well.

Unfortunately, Picasa only allows you to organize your photos into albums with no hierarchy. Also, while you can upload a photo in it’s original size, the number of photos you can store is limited by your storage space. You’re given 1GB of space for free, and you can buy additional space on a yearly basis. But again, shooting at 10 megapixels means I’m going to need a whole lot of storage space, and I suspect that even their 400GB plan for $500 a year would become insufficient sooner or later.

Facebook

To be honest, Facebook is actually what warmed me up to the idea of using a photo sharing service on the web. So while it’s technically not a photo sharing service I thought I’d talk about what I did and didn’t like about the photo storage and sharing options it had.

First, I loved how easy it was to upload pictures and tag the subjects in the photo. Facebook also had no limit to the number of photos I could upload. Of course, those photos were downsized to a much more reasonable 604×404px, and their album hierarchy was also flat. And perhaps the most annoying thing was that I couldn’t share my pictures on my own web site and the galleries I made public I had to link directly. For instance I can send you to my public album of artistic shots but I can’t send you to a page that shows all of my public albums on Facebook. If you had a Facebook account, and were added as one of my friends you could see them all, but that’s cumbersome.

Snapfish

Frankly, I didn’t get very far in evaluating this service. There wasn’t much public information about the services offered, and it had a requirement of buying some product from them at some specified interval in order to keep your account active. As such, I never even signed up or tried it.

And the winner is….

Flickr

As it turns out, this had all of the features I wanted, plus some ones I didn’t realize I wanted until I used them.

First, the negatives. With a free account your only allowed to upload 100MB of files each month, and you’re limited to 3 “sets” (Flickr’s version of an album). Also, you can’t technically have a multi-level hierarchy of sets but there are ways to overcome that (more on this later). Of course, those limitations are removed as soon as you buy a “Pro” account which is a paltry $25 per year. Needless to say I went with that.

Now the good stuff! While you can only have a flat hierarchy of sets, you can create “collections” which contain sets or other collections. These can be nested up to 5 deep. This more than handles my organization needs. For instance, I’d like to categorize all of my pictures of my son, then break it down into particular types of events, then the specific event. Something like “Baby Pictures -> Firsts -> Crawling, Walking, Solid Food, Etc.”.

And if that organization is not enough, you can also tag a photo with keywords that are search able by the community, and act as a sort of metadata for organization.

Built right in is the ability to use your photo in a variety of sizes on your blog, forums, website, or whatever you like. Even more exciting is that there are plenty of options for sharing your pictures on other sites, as well as a public landing page for you. They even offer an open API which I’m sure I’ll find useful eventually!

So there it is. After a fair amount of time spent searching I found the solution that works best for me. Hopefully my comparison can help you if you’re searching for a photo sharing service.

The Nikon D90 Excites Me

Wednesday, September 17th, 2008

Okay, so it’s not news that the new Nikon D90 digital SLR has been announced.

The camera is the following (new) features crammed into a body with the same footprint as the D80.

  • 12.3MP CMOS sensor
  • 3 inch screen with “Live View”
  • Built in support for GPS geo-tagging in your EXIF data (GPS receiver sold seperately)
  • D-Movie mode for up to 5 minutes of 720p video
  • Probably some other stuff that escaped my notice or didn’t seem important to me

12.3MP CMOS sensor

No surprise here, it’s a higher MP sensor, and is a CMOS sensor rather than a CCD sensor. To be honest, I’m not clear on the differences between the two, but CMOS sensors are what are in all the newer cameras, as well as my HDV camcorder.

3 inch screen with “Live View”

You simply can’t argue that a bigger screen is better, and the addition of “Live View” (basically the ability to use the screen as a viewfinder, like your point-and-shoot digicam) is pretty cool too.

Built in GPS geo-tagging support

Also pretty cool and allows you to show exactly where photos were taken, though there are ways to do this with some existing dSLR’s. Doesn’t really do much for me since I’m rarely taking photos in any really exciting places.

D-Movie mode

Yup, you can record up to 5 minutes of 720p video with mono sound with the D90. There is a lot of controversy about this ability, and many are calling it a gimmick.

Now, with all that said, I’m not ready to go out and trade my D80 in for one. “But I thought you said you were excited.”, I can hear you saying..

Well, yes.. I’m very VERY intrigued by the D-Movie mode. Now, as it’s implemented in the D90 I’d rather use my Sony HDR-HC1 camcorder to capture video to tape, but the idea of similar resolution captured through a nice Nikon VR lens with the ability to use nice depth of field tricks is very VERY exciting to me. There have been people who’ve speculated that Nikon may make the transition into a full fledged video camera using the technology from this camera. If they do, and they keep it affordable (say, under $2k), I’d be first in line for one!

Meanwhile, I’m looking into building an adapter that will allow me to attach my SLR lenses to my little camcorder to get depth of field (DOF), but I’d much prefer having something that does this sort of thing by design!

If you’re curious about the “DOF adapter”, I just recently discovered that such a thing existed from a labor day post over at Strobist.

My free DIY lightbox

Wednesday, September 10th, 2008

Cool image captured with my free light box

Since acquiring my Nikon D80 Digital SLR, I’ve been spending more and more time reading and researching about how to best exploit it’s capabilities and improve my shooting skills. As a result of this effort I’ve found a wonderful resource on lighting with small off camera flashes over at Strobist. I stumbled across them when I was searching for a cheap way to build my own “light box” for shooting small(ish) objects with great studio lighting. That’s how I found this article on creating a $10 macro photo studio.

Even as cheap as it was, I wasn’t sufficiently motivated to get the parts together to build it as it would require a couple trips to crafts stores etc. Then it occurred to me, I already have most, if not all of the materials to build this just sitting around the apartment!

My base was a cardboard box originally used to carry two 2.5 gallon Arrowhead water bottles, it’s almost EXACTLY a 12″ cube. Then, lacking tissue paper, I needed some sort of diffuser. I then realized I have plenty of white kitchen trash bags which are sufficiently translucent. After hacking up the box, and putting in the plastic windows all I needed was a backdrop. An old poster that had been rolled up and forgotten about in a closet for years was a perfect candidate after some cutting. So here, in all it’s glory is my free light box!

My free light box

The poster I used for a backdrop was a teensy bit wrinkled, and was a bit more reflective than I’d like but it’ll do for free!

I’d actually like to build something similar to this, but a bit (maybe a lot) larger to accommodate bigger items and allow more flexibility as far as the angle of the shot. Right now I feel like I’m pretty much required to have the camera pointing straight into the box and I can’t shoot anything that fills more than 1/3 or so of the box.

You can take a look at a few of the shots I took with it over here.