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 8461089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:46:59+00:00 2026-06-10T13:46:59+00:00

I have written an algorithm which gaussian blurs an image by a customizable radius

  • 0

I have written an algorithm which gaussian blurs an image by a customizable radius just like this one: FastBlur.js (function boxBlurCanvasRGB) but only ported to php.

When I pick an image with 512×384 pixels, the function works wonderfully. Bigger images cause a fatal php error (memory exceeds). But the goal is to use any image dimension and give a warning before a fatal error occurs.

Something like:

if ($memory_needed_for_this > $available_memory_at_all) { return false; }

Is it possible the calculate the amount of memory needed for a process or check how much memory is currently being used lets say within a for each loop?

Thanks

  • 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-06-10T13:47:01+00:00Added an answer on June 10, 2026 at 1:47 pm

    do some testing and sample the usage of memory – if it’s consistent with the growth of image size, you can easily figure the max size.

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

Sidebar

Related Questions

this is my algorithm that I have written it with my friends (which are
I have a function in java which is written with a recursive algorithm that
I have written the following algorithm in order to evaluate a function in MatLab
So I have some cool Image Processing algorithm. I have written it in OCaml.
have written this little class, which generates a UUID every time an object of
I have written an algorithm which iteratively solves the problem. The first iteration consists
I have written an anagram solving algorithm, which does not work. for word in
I have written a software which I would like to bind to mac. Is
I have recently written some code which schedules messages to send to one of
I have an algorithm written in C and it has code which can be

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.