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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:54:44+00:00 2026-06-04T12:54:44+00:00

Hello I am working over a Facebook app that’s requires retrieving users display picture

  • 0

Hello I am working over a Facebook app that’s requires retrieving users display picture and merge it with another image, the problem is I am using heroku which does not provide GD support for jpeg images, hence I can’t work it out while the image format is jpeg.

  • I need suggestions to work out this problem of mine somehow.
  • Is it possible that i include support for jpeg by including some library in
    my project and referencing in my code.

This is what I am getting while the input image is jpeg:

Warning: imagecreatefromstring(): Data is not in a recognized format in …
Warning: imagegif() expects parameter 1 to be resource, boolean given in…

$dpImageGif = 'temp/'. $userId '.gif';
        $url = file_get_contents("http://graph.facebook.com/{$userId}/picture?type=large");
$dpImage = 'temp/' . $userId ;
$imageObject = imagecreatefromstring($url);
//$imageObject = imagecreatefromjpeg($dpImage);
imagegif($imageObject, $dpImageGif);

gd_info():

array(11) {
  ["GD Version"]=>
  string(27) "bundled (2.0.34 compatible)"
  ["FreeType Support"]=>
  bool(false)
  ["T1Lib Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(true)
  ["JPEG Support"]=>
  bool(false)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(false)
  ["XBM Support"]=>
  bool(true)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}
  • 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-04T12:54:45+00:00Added an answer on June 4, 2026 at 12:54 pm

    Apparently Heroku does support ImageMagick on PHP, which you can use instead of GD for JPEG image processing. Not very useful for existing apps, but if you’re starting from scratch it shouldn’t be an issue.

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

Sidebar

Related Questions

Hello I'm working on a problem that requires me to change an set array
Hello I am new to facebook app development and working over my first app.
Hello I am new to facebook app development and working over my first app.
Hello all I am working in javascript and html5.I want to ask that how
Hello I have this list that i am working on. When i move the
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
Hello im working in a generic function that sends an ajax request according with
Hello all! I'm working on a prototype that would require me being able to
HELLO, I am working on XCODE 3.1.4 , my iphone have 3.1.2 os...But as
hello i have created one windows application in c# .net and its working fine

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.