Hi all In PHP I have a neat function: ch2.php.net/function.getimagesize With it I can easily determine the dimensions of an image file. How can I do that in RoR? Thanks for help. Greets, Josh -- Posted via ruby-forum.com.
Hi! There''s probably simpler way, but you can always try rmagick.rubyforge.org. -- Posted via ruby-forum.com.
szymek wrote:> Hi! > > There''s probably simpler way, but you can always try > rmagick.rubyforge.org.Thanks, but isn''t there something like a helper method like PHP''s get_image_size()? -- Posted via ruby-forum.com.
Joshua Muheim wrote:> szymek wrote: > >>Hi! >> >>There''s probably simpler way, but you can always try >>rmagick.rubyforge.org. > > Thanks, but isn''t there something like a helper method like PHP''s > get_image_size()? >There''s nothing built-in, but you can get dimensions for jpg, gif and png easily enough: bigbold.com/snippets/posts/show/805 Other image types could probably be handled relatively easily, too... -- Alex