Skip to content

Instantly share code, notes, and snippets.

@midu
Created January 25, 2011 17:05
Show Gist options
  • Save midu/795224 to your computer and use it in GitHub Desktop.
Save midu/795224 to your computer and use it in GitHub Desktop.
create thumnail w/ submission ID + type
# recipes
h = {904=>"Vegetable",
1105=>"Grains",
770=>"Grains",
971=>"Vegetable",
837=>"Legumes"
# , ...
}
# create watermak
i = 1
h.each_pair do |id, type|
puts "#{id} - #{i}/#{h.size}"
begin
eval "`convert -pointsize 14 -density 100 -background transparent -font Helvetica label:\"##{id} / #{type}\" #{id}/thumb.png`"
rescue
puts "oh :("
end
i = i+1
end
@adrien-mogenet
Copy link

Working on eZImageEditor ? :)

@midu
Copy link
Author

midu commented Jan 25, 2011

yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment