473,548 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difficulties creating PNG pictures

Hello all,

I have a web page in which I create a simple PNG picture using PHP. It was
correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now my
little picture is a black square!

Anyone knows the reason?

I've got those two png libraries installed. Does PHP need some more to
adequatly create and manage PNG pictures?
libpng3-devel 1.2.5-2mdk
libpng3-static-devel Version : 1.2.5-2mdk

TIA

Yannick
Jul 16 '05 #1
2 2621
Yannick Turgeon wrote:
I have a web page in which I create a simple PNG picture using PHP. It was
correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now my
little picture is a black square!

Anyone knows the reason?

I've got those two png libraries installed. Does PHP need some more to
adequatly create and manage PNG pictures?
libpng3-devel 1.2.5-2mdk
libpng3-static-devel Version : 1.2.5-2mdk


What version of GD are you using? Are you getting any errors? Could you post
code snippets?

Shawn
--
Shawn Wilson
sh***@glassgian t.com
http://www.glassgiant.com
Jul 16 '05 #2
Shawn,

Thanks to reply. After reading your message, I took a look at the code
generating my picture. I was using the function "imagecopyresiz ed" and it
seems that the result of this call was now a all black square. Don't know
why. I changed the creation of my destination image from "imagecreat e" to
"imagecreatetru ecolor" and it finally work fine. Don't know the initial
cause but have found an solution.

Yannick
Yannick Turgeon wrote:
I have a web page in which I create a simple PNG picture using PHP. It
was correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now
my little picture is a black square!

Anyone knows the reason?

I've got those two png libraries installed. Does PHP need some more to
adequatly create and manage PNG pictures?
libpng3-devel 1.2.5-2mdk
libpng3-static-devel Version : 1.2.5-2mdk


What version of GD are you using? Are you getting any errors? Could you
post code snippets?

Shawn
--
Shawn Wilson
sh***@glassgian t.com
http://www.glassgiant.com


Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3045
by: 7mary4 | last post by:
I am working on a kiosk for a museum, we will be using firefox as the browser, with windows, and a touch screen. We'd like to create a slide show of a small portfolio when the visitors click down to the lowest level of the collection. For instance, after choosing Africa, then Sudan, they will choose what they would like to look at: jewelry,...
33
2327
by: STILL LEARNING | last post by:
I'm not sure if this can even be done, but what prompts the question is my desire to be able to create an "Uber Link" script/code of some sort, such that even if the html page contains nothing but a background image -or- a background color -- in other words, the page has neither content nor placed images -- any click, ANYWHERE, will launch...
3
1603
by: czi02 | last post by:
Does anybody knows how to hyperlink to another page.. My problem does not running.... I had a web page just like this: WELCOME TO MY PAGE iNTEREST mY PICTURES MY MUSIC I saved it on my shared documents and name it welcome to my page.htm
2
1529
by: djpaul | last post by:
Hello, I have this program and when i want to load pictures it crashes at the form.showdialog()....??? Here it goes: Private Sub CmbPath_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CmbPath.SelectedIndexChanged Dim Table As DataTable Dim i As Integer Dim ThumbSize As Integer...
0
7512
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.