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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:04:51+00:00 2026-06-06T00:04:51+00:00

For a client I have build a simple script that uploads multiple files(images), resizes

  • 0

For a client I have build a simple script that uploads multiple files(images), resizes them, stores them on a temporary folder and then later on move them to their destination.

Resizing is done using PHP’s GD, as Imagick is not available.

These images are about 2/4 MB a piece and the client uploads about 30 images in one shot.
I used HTML5’s multiple=”” attribute which all works fine.

In tests all worked fine because I used Windows standard wallpaper images.

I can’t find the source of the problem.
When uploading more then 1 image, the script failes debugging tells me it does upload the second image but won’t resize.

I checked the memory usage for the images which is aprox 105724352 bytes each.

My PHP ini settings:

max_execution_time = 300     
max_input_time = 600    
memory_limit = 200M      

So you see at the second image the memory reached it limit, making my script stop. Is that correct?

If so, how wise is it to upgrade the memory limit?

Thanks in advance!

EDIT:

It now seems the GD Function imagecreatefromjpeg cant handle files with a resolution bigger then 3500px wide, my files are bigger then 5000px wide.

Does anyone have a work arround for this?
At this point I am wondering if it is wise to have the client on a shared host at all if he needs so much memory for these images.

  • 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-06T00:04:52+00:00Added an answer on June 6, 2026 at 12:04 am

    So you see at the second image the memory reached it limit, making my
    script stop. Is that correct?

    Check your Apache error logs under (**nix system) /var/log/apache2/error.log to see if it is really the problem.

    If so, how wise is it to upgrade the memory limit?

    You should not hande multiple image operations in one script. Make ajax queries for each, handle them in seperate instances.

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

Sidebar

Related Questions

I have a web application that allows users to build a 'client list.' We
I have this simple script that catches all mouse clicks, unless you click on
I have wrote a simple client that use TcpClient in dotnet to communicate. In
I am trying to build a simple Jabber client. I have downloaded this sample
For my course, we have to build a bittorrent client in Java. I'm having
I have a client that has an app built with django. On every page
I have an application that runs on a client's server built on a SQL
I have two webapps, that are built together and respectively provide a client and
I have client/server applications and a very simple protocol for communication. More precisely, it's
I'm trying to build a simple multithreaded tcp server. The client connects and sends

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.