print failing img size
authorGuillaume Cottenceau <gc@mnc.ch>
Mon, 24 May 2021 13:12:50 +0000 (15:12 +0200)
committerGuillaume Cottenceau <gc@mnc.ch>
Mon, 24 May 2021 13:12:50 +0000 (15:12 +0200)
lib/booh/booh-lib.rb

index a1f7769945af45d903d90432d0f2ed865ae1d7fc..18d4526da024959fa007fe2ce1acfa6420a595bb 100644 (file)
@@ -256,11 +256,15 @@ module Booh
                 if $no_gtk2
                     if `identify '#{fullpath}'` =~ / JPEG (\d+)x(\d+) /
                         $sizes_cache[fullpath] = { :x => $1.to_i, :y => $2.to_i }
+                    else
+                        puts "Failed img size for #{fullpath}!"
                     end
                 else
                     format, width, height = GdkPixbuf::Pixbuf.get_file_info(fullpath)
                     if format && width
                         $sizes_cache[fullpath] = { :x => width, :y => height }
+                    else
+                        puts "Failed img size for #{fullpath}!"
                     end
                 end
             end