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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:35:53+00:00 2026-05-20T10:35:53+00:00

Here is a PNG file: https://i.stack.imgur.com/AHOgE.png (Yes, never mind that it’s a funny penguin

  • 0

Here is a PNG file: https://i.stack.imgur.com/AHOgE.png (Yes, never mind that it’s a funny penguin with a sign…)

When running the following code:

imagecreatefrompng('https://i.stack.imgur.com/AHOgE.png');

I get an error:

PHP Warning: imagecreatefrompng() [function.imagecreatefrompng]: Cannot read image data in /home/test/…

The PNG file seems to be fine – I can open it with different editors, and the Unix file command reports that it is:

PNG image, 640 x 360, 8-bit/color RGB, non-interlaced

PHP version: 5.2.13
GD version: bundled (2.0.34 compatible)

  • 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-20T10:35:54+00:00Added an answer on May 20, 2026 at 10:35 am

    I have no idea why, but the following works:

    imagecreatefromstring(file_get_contents('http://imgur.com/NUl4v.png'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here is the PNG file and what it looks like in a QWebView when
I'm trying to upload a PNG file through Winsock2 HTTP Post. Here's my request
Possible duplication (solved): https://stackoverflow.com/a/1133132/783469 I have icons (jpg, png) for my application, which is
I'm trying to create a layout similar to this: alt text http://img20.imageshack.us/img20/3533/stackn.png Here's the
Here is my IB setup: http://img145.imageshack.us/img145/5929/picture1gxr.png When both NSScrollView and NSTableView are set to
Here's the basic layout of a page I'm working on: alt text http://www.mfrl.org/images/pagelayout.png What
Here is my preload script: <script type=text/javascript> Image_1 = new Image(1,1); Image_1.src = images/sprites.png;
Here is my HTML: <li> <div class=menu_inner> <a href=#> <div class=button><img class=486 src=images/portalbutton.png /></div>
Total noob question, but here. CSS .product__specfield_8_arrow { /*background-image:url(../../upload/orng_bg_arrow.png); background-repeat:no-repeat;*/ background-color:#fc0; width:50px !important; height:33px

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.