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

  • Home
  • SEARCH
  • 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 533535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:31:06+00:00 2026-05-13T09:31:06+00:00

I found this really nice function that receives your desired proportions and resizes/crops the

  • 0

I found this really nice function that receives your desired proportions and resizes/crops the image for you. The function requires ImageMagick to work.

Will it be better to cache the image or resize it every time? I’m pretty sure using gd will be slower than caching, but it won’t require me to use ImageMagick, and I still haven’t successfully tweaked it (something with ImageMagicks’ convert won’t work).

  • 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-13T09:31:07+00:00Added an answer on May 13, 2026 at 9:31 am

    Image generation functions are very expensive. Caching will almost always be significantly faster, and isn’t that hard to implement. Come up with a quick naming scheme that will take into account the size of the image (‘userid-123-200×400.jpg’) and uniquely identify it, and when time comes to serve it, just check if it’s there and generate it and save it into a cache directory if necessary.

    Disk space is cheaper than CPU and scales much better, and your page load times will thank you for it.

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

Sidebar

Related Questions

I found a really nice action filter that converts a comma-separated parameter to a
I found this similar question here , but this is really old. Was it
I found this in the PowerVR mesh drawing code and I don't really know
I found a workaround for this error, but am now really curious as to
I found some good answers for this question, but I can't really get them
Found this question that explained a way to communicate between layers. However there is
It's often the case that I can write a nice tight little VB.NET function,
I found this nice snippet of code online: rkApp = Registry.LocalMachine.OpenSubKey(SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run, true); Which runs
A while back I found a really nice snippet which showed how a file
There are many similar questions, but I haven't really found the answer for this.

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.