Follow below steps to test.
-
Place .jpg or .png files that need to be compressed in the ./files_to_convert folder.
-
Configure variables at the top of convert.rb
-
Execute below command in the console.
$ ruby convert.rb
-
Once the execution is complete open the generated "*.html" files in the output folder.