473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

imagecreatefromxbm exists but imagexbm doesn't

[PHP]
<?php

echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL

?>
[/PHP]

Use: PHP 4.3.9 with bundled GD 2.0.1

Why would one function exist while the other not exist? Is this perhaps
due to XBM (X-Bitmap) images being "read-only", or is it something
else?

Thanx
Phil

Jul 20 '06 #1
2 1148
On 20 Jul 2006 15:21:23 -0700, "comp.lang.php" <ph**************@gmail.com>
wrote:
>[PHP]
<?php

echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL

?>
[/PHP]

Use: PHP 4.3.9 with bundled GD 2.0.1

Why would one function exist while the other not exist? Is this perhaps
due to XBM (X-Bitmap) images being "read-only", or is it something
else?
http://uk2.php.net/imagexbm
says:

"imagexbm (PHP 5)"

You're on PHP4, XBM generation appears to be specific to the bundled GD
library (core GD doesn't appear to support it, at least there's no imagexbm
function in the main API; PHP has a slightly modified version compared with the
official GD library), and so it seems it was added in a later version to the
one you have.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 20 '06 #2

Andy Hassall wrote:
On 20 Jul 2006 15:21:23 -0700, "comp.lang.php" <ph**************@gmail.com>
wrote:
[PHP]
<?php

echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL

?>
[/PHP]

Use: PHP 4.3.9 with bundled GD 2.0.1

Why would one function exist while the other not exist? Is this perhaps
due to XBM (X-Bitmap) images being "read-only", or is it something
else?

http://uk2.php.net/imagexbm
says:

"imagexbm (PHP 5)"

You're on PHP4, XBM generation appears to be specific to the bundled GD
library (core GD doesn't appear to support it, at least there's no imagexbm
function in the main API; PHP has a slightly modified version compared with the
official GD library), and so it seems it was added in a later version to the
one you have.
I see. Ok what workarounds do you recommend then for performing a zoom
and resizing an XBM Bitmap?

Thanx
Phil
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 21 '06 #3

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

Similar topics

4
by: lawrence | last post by:
Google can't find me a good example of how to use the "if exists" syntax in MySql. Is it right that to use it this way: INSERT INTO IF EXISTS tMyTable VALUES("xxlk", "lkjlkjlkjljk") I want...
2
by: Jonathan | last post by:
I am looking for a simple way to check if a database table exists. I keep getting advice to use "Try.. Catch" and other error handling methods, but I obviously don't want to have to display an...
15
by: Geiregat Jonas | last post by:
is using if(open("file",O_EXCL) != -1){ printf("File does exists")}else{printf("file does not exists"); } a good way of checking if a file exists or not, if not how should I do it ?
2
by: Zeno Lee | last post by:
I'm using File.Exists to test a file on my C: drive. My program was strongly named and had caspol -af run on it to allow it to run from the network. There are 3 ways I am doing this: 1) Run...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.