back

invalid geometry format (geometry.rb:36:in `from_s') attachment fu

If you get the error:

invalid geometry format vendor/plugins/attachment_fu/lib/geometry.rb:36:in `from_s’

when running attachment fu, it means that this regex from attachment fu:

RE = /\A(\d*)(?:x(\d+))?([-]\d)?([-]\d)?([%!<>@]?)\Z/

is not getting matched.

This is likely because you are setting your image to resize to something like ‘380x’.

Setting it to 380x used to work, but no longer does, it appears.

To fix this, just change it to ‘380’ (removing the x makes it work, and does what you want)

January 29, 2009