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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:11:58+00:00 2026-06-11T14:11:58+00:00

I am using a image thumbnailing library (Laravel’s resizer bundle ) which takes a

  • 0

I am using a image thumbnailing library (Laravel’s resizer bundle) which takes a jpg from a directory and uses imagesx() to save that image in a different size. This works without error most of the time.

Problem: However sometimes when there is a batch of images to be processed, I get the error below. While debugging, I did

....
print_r($this->image);
imagesx($this->image);
....

PHP output

Resource id #64Resource id #67Resource id #73Resource id #76Resource id #82Resource id #85Resource id #91Resource id #94Resource id #100Resource id #103Resource id #109Resource id #112Resource id #118Resource id #121Resource id #127Resource id #130Resource id #136Resource id #139Resource id #145Resource id #148Resource id #154Resource id #157Resource id #163Resource id #166

Unhandled Exception

Message:

imagesx() expects parameter 1 to be resource, boolean given
Location:

/home/dev/public_html/bundles/resizer/resizer.php on line 69
Stack Trace:

#0 /home/dev/public_html/laravel/laravel.php(40): Laravel\Error::native(2, 'imagesx() expec...', '/home/dev/publi...', 69)
#1 [internal function]: Laravel\{closure}(2, 'imagesx() expec...', '/home/dev/publi...', 69, Array)
#2 /home/dev/public_html/bundles/resizer/resizer.php(69): imagesx(false)
#3 /home/dev/public_html/bundles/resizer/resizer.php(81): Resizer->__construct('/home/photos/pu...')
#4 /home/dev/public_html/application/controllers/crawl/cl.php(369): Resizer::open('/home/photos/pu...')
#5 /home/dev/public_html/application/controllers/crawl/cl.php(315): Crawl_CL_Controller->save_photos(Array, 2516533, '2012-09-17 18:4...')
#6 [internal function]: Crawl_CL_Controller->action_crawl_next_item()
#7 /home/dev/public_html/laravel/routing/controller.php(325): call_user_func_array(Array, Array)
#8 /home/dev/public_html/laravel/routing/controller.php(285): Laravel\Routing\Controller->response('crawl_next_item', Array)
#9 /home/dev/public_html/laravel/routing/controller.php(165): Laravel\Routing\Controller->execute('crawl_next_item', Array)
#10 /home/dev/public_html/laravel/routing/route.php(153): Laravel\Routing\Controller::call('crawl.cl@(:1)', Array)
#11 /home/dev/public_html/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#12 /home/dev/public_html/laravel/laravel.php(165): Laravel\Routing\Route->call()
#13 /home/dev/public_html/public/index.php(34): require('/home/dev/publi...')
#14 {main}

Together with the stack trace above, you can see that $this->image is false right after its Resource id #166.

Any idea what may have caused this? I dont understand why it can sometimes be false. 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-11T14:11:59+00:00Added an answer on June 11, 2026 at 2:11 pm

    This is happening because the mime type for that file isn’t being recognised or is not a jpg/jpeg/png/gif.

    The $this->image is being set to false on line 196 in resizer.php.

    If you can’t get it to work, please create an issue on Github so I can follow it up 🙂

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

Sidebar

Related Questions

I am using image picker to pick image from gallery in iPhone device. I
Apart from using image on the button, how can I write X Y on
I'm using this code to save images from a specific URL using Image::Grab .
I am developing an iPad application by which i am using image context to
I wonder whether someone could help me please. I'm using Image Uploader from Aurigma,
How do I save an image file from data manipulated using image.load()? This is
I am displaying image's from web using Image downloading logic from url, I want
I am using following code in WPF to display image in webcam usingEmguCv library
I currently am using: image_tag(src) Which displays the image using the relative path. I
I am using image upload and resize script from someones blog. It stores the

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.