lib/komic/generator/generator.rb in komic-cli-0.1.1 vs lib/komic/generator/generator.rb in komic-cli-0.1.2
- old
+ new
@@ -140,9 +140,12 @@
file.write thumbnails_builder.to_build
end
files.map do |image, index|
image[:src] = Utils.get_relative_path(image[:src], root_dir)
+ if options[:'remote-url']
+ image[:src] = "https://placeimg.com/#{image[:width]}/#{image[:height]}/any"
+ end
image
end
meta = {
description: 'TEST',