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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:52:31+00:00 2026-06-04T21:52:31+00:00

Well, as I am not into the GD Libary and Image functions in PHP

  • 0

Well, as I am not into the GD Libary and Image functions in PHP I am a bit stuck… In fact, the same function has no Problems with creating JPEG images from the uploaded files – but it’s stuck on png… All I get is a 33 byte file with the right filename and destination – of course the original image exists and is uploaded just fine…

$altesBild=ImageCreateFromPNG("$PicPathIn"."$bild"); 
$neuesBild=imagecreatetruecolor(300,$neueHoehe);
$neuesBildHeader=imagecreatetruecolor(966,$neueHoeheHeader);  
imagecopyresampled($neuesBild,$altesBild,0,0,0,0,300,$neueHoehe,$breite,$hoehe);
imagecopyresampled($neuesBildHeader,$altesBild,0,0,0,0,966,$neueHoeheHeader,$breite,$hoehe);
ImagePNG($neuesBild,"$PicPathOut"."/thumbs/thumb_"."$bild",80);
ImagePNG($neuesBildHeader,"$PicPathOut"."/header/header_"."$bild",80);
  • 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-04T21:52:33+00:00Added an answer on June 4, 2026 at 9:52 pm

    Try using a compression value between 0 and 9, as stated in the doc of the ImagePNG function.

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

Sidebar

Related Questions

I'm running into a severe problem, In fact I'm not well understanding recess naming
I recently came across a bit of not-well-tested legacy code for writing data that's
I'm parsing a (not well formed) Apple Plist File with java. My Code looks
My question is probably not well phrased and it's probably a dupe but here
I'm being handed some data which is not well defined and subject to change
the first sorry for my english I understand well but not write ok? I
Suppose i have the code snippet as follows : ( clarification purpose/not well formed
http://www.programmersheaven.com/2/FAQ-ADONET Disconnected architecture is not well suited for desktop clients with multiple updates but
I need to use basic javascript here and I'm not well versed with it.
I'm trying to make a design decision. I'm not well acquainted with either MongoDB

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.