From: Nightblade Date: 2002-01-07T15:17:56+09:00 Subject: Re: how do I "pop up" a scaled jpg image "Programming Ruby: The Pragmatic Programmer's Guide" has a chapter on Ruby Tk that might have what you're looking for: http://www.rubycentral.com/book/ext_tk.html Cheers, Nightblade "Bil Kleb" wrote in message news:3C390101.A5BACDCC@LaRC.NASA.Gov... > So I created a small script (I welcome criticism) to > help me add some captions for a bunch of jpeg images: > > Dir["*.jpg"].sort.each do |file| > puts "Enter caption for #{file}:" > caption = gets > if caption && caption!="\n" then > File.open(File.basename(file,".jpg")+".txt","w") do |file| > file.puts caption > end > end > end > > However, it would be nice to have the script pop up a small > version of the image to look at while I write the caption. > > I've looked at Ruby-gimp, but I can't find any simple > examples or read Japanese. Any suggestions? > > (I'm on a linux box with things like Gimp and ImageMagick.) > > Thanks, > -- > Bil > NASA Langley Research Center > Hampton, Virginia