diff --git a/lib/tasks/images.rake b/lib/tasks/images.rake index 0528281f7..84f1d1505 100644 --- a/lib/tasks/images.rake +++ b/lib/tasks/images.rake @@ -20,6 +20,16 @@ namespace :images do h: file.height, } + puts hash.to_json + rescue StandardError => e + hash = { + path: File.absolute_path(path), + name: File.basename(path, ".*"), + md5: file.md5, + size: file.file_size, + error: e.message, + } + puts hash.to_json end end