mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
skip bad images
This commit is contained in:
parent
839edbe922
commit
3cf0714a29
1 changed files with 4 additions and 1 deletions
3
Rakefile
3
Rakefile
|
@ -195,7 +195,10 @@ task :rebuild_thumbnails => [:environment] do
|
||||||
path = '/'+full_path[1..full_path.length].join('/')
|
path = '/'+full_path[1..full_path.length].join('/')
|
||||||
|
|
||||||
if Pathname(path).extname.gsub('.', '').match Site::IMAGE_REGEX
|
if Pathname(path).extname.gsub('.', '').match Site::IMAGE_REGEX
|
||||||
|
begin
|
||||||
ThumbnailWorker.new.perform username, path
|
ThumbnailWorker.new.perform username, path
|
||||||
|
rescue Magick::ImageMagickError
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue