在RMagick中,我可以做Magick::Image.read(url).first.columns
,但当我尝试MiniMagick::Image.open(url).columns
时,我得到一个NoMethodError。
如何访问MiniMagick中的行和列?
试试这个:
MiniMagick::Image.open(url)[:width]