Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6474907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:38:33+00:00 2026-05-25T06:38:33+00:00

When resizing images memory usage increases by 40 MB to 80ish MB. These are

  • 0

When resizing images memory usage increases by 40 MB to 80ish MB. These are on files that vary in size but none of them are bigger then 300 kb.

After a bit of profiling I found the offending method.

def avatar_resize path
  img = Magick::Image.read(path).first
  img.resize_to_fit(200,200).to_blob
end

Is this big increase in memory usage normal or do I need to do something else to eliminate these huge spikes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:38:34+00:00Added an answer on May 25, 2026 at 6:38 am

    Do you need to create or composite images? If not you could use using mini magick instead. Rmagick shares memory with rails while mini magick has a separate memory allocation for mogrify.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i found a lot of questions about resizing images in .NET and whatnot, but
The .NET libraries do an excellent job at resizing images that look great: Bitmap
About catalog images I found smth here http://www.magentocommerce.com/knowledge-base/entry/resizing-catalog-images/ . But it has a path
i'm familiar with resizing and cropping images under php using imagecopyresampled but now i'm
I googled about resizing images in python. but I found nothing helpful in python
I have a script that does images resizing on load: $( document ).ready( function()
I'm resizing images with php gd. The result is image resources that i want
I'm currently running into some issues resizing images using GD. Everything works fine until
I have a HttpHandler for resizing images, round corners, reflection etc etc. This i
So I'm trying to take a bilinear interpolation algorithm for resizing images and add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.