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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:00:29+00:00 2026-06-01T03:00:29+00:00

Image size is not the problem here, because my image is 800 Kb. My

  • 0

Image size is not the problem here, because my image is 800 Kb.

My image upload works flawlessly at any resolution below 2900 x 2176. Over that threshold, it doesn’t work. No image is uploaded. Why is that happening?

I’ll put some code of my upload handler, just in case, but not sure if it’s relevant.

The error is:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8884 bytes) in /path/imageResizer.php on line 34 –

which refers to…

if( $this->image_type == IMAGETYPE_JPEG ) { $this->image = imagecreatefromjpeg($filename); 
  • 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-01T03:00:30+00:00Added an answer on June 1, 2026 at 3:00 am

    What kind of break occurs? Any errors being thrown?

    Possibilities:

    1. You’re running out of memory. My guess is the imageResizer object and its methods are to blame. What is your current memory limit for php?

    EDIT: As @deceze said, you can do use this function to temporarily raise the allocated memory:

    ini_set('memory_limit', '64MB');
    
    1. imageResizer can’t handle images of that resolution. Did you write that class yourself, or is it a library? I’m not familiar with it. Check specs.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there some way to validate the image size (height and width) before upload
I have a lot of jpeg files with varying image size. For instance, here
My user is uploading an image of any size XX x YY. I want
My PHP code below shows an image on browser as its original size 300x300.
Code not working because of async query and variable scope problem. I can't understand
Ok, here is the problem: I have a left side menu that will not
Here is the navbar in my rails app. The problem is I am not
I Want to load Image size 2550X3300 (i.e 1.7 Mb size), i have loaded
I want to display an image at 'true size' in my application. For that
I have image and txt file of same size say 200 KB. Now i

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.