Permalink
Browse files

Avoid trying to load images from FS root.

  • Loading branch information...
1 parent da71a23 commit c27a55ad1bd5549b4c4e5b661781cf817a083fbe @matschaffer committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/showoff.rb
View
2 lib/showoff.rb
@@ -275,7 +275,7 @@ def update_image_paths(path, slide, static=false, pdf=false)
if defined?(Magick)
def get_image_size(path)
if !cached_image_size.key?(path)
- img = Magick::Image.ping(File.join(@asset_path, path)).first
+ img = Magick::Image.ping(File.join(".", @asset_path, path)).first
# don't set a size for svgs so they can expand to fit their container
if img.mime_type == 'image/svg+xml'
cached_image_size[path] = [nil, nil]

0 comments on commit c27a55a

Please sign in to comment.