diff --git a/_plugins/photo_gen.rb b/_plugins/photo_gen.rb index 921f463..24d5dca 100644 --- a/_plugins/photo_gen.rb +++ b/_plugins/photo_gen.rb @@ -1,5 +1,4 @@ require "mini_exiftool" -require "webp_ffi" module Jekyll class PhotoPageGenerator < Generator @@ -36,7 +35,6 @@ def generate(site) dest = File.join(site.dest, photo_url) FileUtils.mkdir_p dest image_filename = File.join(photo_url, filename + file_extension) - preview_filename = File.join(photo_url, filename + '.webp') begin pic = MiniExiftool.new(photo) @@ -62,7 +60,6 @@ def generate(site) 'location' => location, 'camera' => camera, 'image' => image_filename, - 'preview_image' => preview_filename, 'aperture' => aperture, 'sspeed' => sspeed, 'iso' => iso, @@ -79,7 +76,6 @@ def generate(site) site.pages << photo_page FileUtils.cp(File.expand_path(photo), dest) - WebP.encode(File.expand_path(photo), File.join(dest, preview_filename), target_size: 524288) rescue puts "#{photo} didn't work" end