lib/abrizer/temporary_poster.rb in abrizer-0.3.0 vs lib/abrizer/temporary_poster.rb in abrizer-0.4.0
- old
+ new
@@ -12,9 +12,11 @@
@output_directory = output_dir
end
def copy
FileUtils.cp first_image_filepath, poster_image_filepath
+ `jpegoptim #{poster_image_filepath}`
+ FileUtils.chmod "ugo+r", poster_image_filepath
end
end
end