From: Tim Hunter Date: 2008-04-01T20:22:14+09:00 Subject: Re: metrics rmagick problem Eduard Bondarenko wrote: > ImageMagick 6.4.0 03/28/08 Q16 > rmagick (2.3.0) > Rails 2.0.2 > > I guess I found a problem. > When I change Image.read to Image.new > with the same dimensions text written at the > desired location. > > SOLUTION (possible): > image.page was not right. > public/print_images/bc5085fc45bb5697aec6e181e33ebe78.png PNG 535x535 > 768x768+177+79 DirectClass 16-bit 68kb > width=768, height=768, x=177, y=79 > width=535, height=535, x=0, y=0 > > I assign image.page to new Rectangle. > Is there any better solution? > That's the best solution. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html