Skip to content
Browse files

Merge pull request #174 from matschaffer/master

Avoid trying to load images from FS root.
  • Loading branch information...
2 parents da71a23 + c27a55a commit 52d064a3c653fb90a9cf6f069ff16f4c76942ce6 @goncalossilva goncalossilva 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 52d064a

Please sign in to comment.
Something went wrong with that request. Please try again.