diff --git a/lib/jekyll/migrators/tumblr.rb b/lib/jekyll/migrators/tumblr.rb
index 2a2a3034..cc318ca0 100644
--- a/lib/jekyll/migrators/tumblr.rb
+++ b/lib/jekyll/migrators/tumblr.rb
@@ -56,10 +56,10 @@ module Jekyll
end
when "photo"
title = post["photo-caption"]
- content = "
"
- unless post["photo-link-url"].nil?
- content = "#{content}"
- end
+ max_size = post.keys.map{ |k| k.gsub("photo-url-", "").to_i }.max
+ url = post["photo-url"] || post["photo-url-#{max_size}"]
+ content = "
"
+ content = "#{content}" unless url.nil?
when "audio"
if !post["id3-title"].nil?
title = post["id3-title"]