I'm attempting to upload the full size image that comes from a post, then thumbnail it and put the thumbnail on S3. However, I'm running into a strange issue where the my resize code seems to be affecting the full size image, even though S3 should be storing it prior to any resize occuring. Here is a snippet of code illustrating it...
AWS::S3::S3Object.store(fullPath, open(params[:photo][:tempfile]), BS.config[:service][:aws][:bucket], :access => :public_read)
thumbnail = MiniMagick::Image.open(params[:photo][:tempfile].path)
thumbnail.combine_options do |c|
c.resize('200x200^')
c.gravity('center')
c.crop('200x200+0+0')
end
AWS::S3::S3Object.store(thumbnailPath, thumbnail.to_blob, BS.config[:service][:aws][:bucket], :access => :public_read)