lib/technoweenie/attachment_fu.rb in ss-attachment_fu-3.4.3 vs lib/technoweenie/attachment_fu.rb in ss-attachment_fu-3.4.4
- old
+ new
@@ -553,10 +553,11 @@
# Resizes the given processed img object with either the attachment resize options or the thumbnail resize options.
def resize_image_or_thumbnail!(img)
if (!respond_to?(:parent_id) || parent_id.nil?) && attachment_options[:resize_to] # parent image
logger.info "===== check dimension => #{send(attachment_options[:resize_to])}"
return unless respond_to?(attachment_options[:resize_to])
- resize_image(img, send(attachment_options[:resize_to]))
+ # resize_image(img, send(attachment_options[:resize_to]))
+ resize_image(img, evaluate_parameter(attachment_options[:resize_to]))
elsif thumbnail_resize_options # thumbnail
resize_image(img, evaluate_parameter(thumbnail_resize_options))
end
end