2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-31 05:55:11 +00:00

Incorrect syntax for imagesize (missed in previous fix).

This commit is contained in:
Edho Arief
2012-08-15 09:11:27 -07:00
parent 18be56c70d
commit e6097f43a9

View File

@@ -218,7 +218,7 @@ module SimilarImages
File.open(tempfile_path, 'wb') { |f| yield f }
# Use the resizer to validate the file and convert it to a thumbnail-size JPEG.
imgsize = ImageSize.path(File.open(tempfile_path, 'rb'))
imgsize = ImageSize.path(tempfile_path)
if imgsize.format.nil?
raise Danbooru::ResizeError, "Unrecognized image format"
end