You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
khelll edited this page Oct 25, 2011
·
16 revisions
Simple trick to get the image dimensions generated by some version:
# in the uploader fileversion:showdoprocess:resize_to_limit=>[500,500]process:get_version_dimensions=>:showenddefget_version_dimensions(version)width,height=`identify -format "%wx%h" #{file.path}`.split(/x/)end``