View unanswered posts | View active topics It is currently Fri Apr 19, 2024 3:45 am



Reply to topic  [ 5 posts ] 
Option to choose the image format generated by pChart (BMP) 
Author Message
New pChart user
New pChart user

Joined: Tue Feb 08, 2011 2:37 pm
Posts: 3
Post Option to choose the image format generated by pChart (BMP)
Hi Guys,

I have a need here and would like your help. In a project I'm working, I need to insert a line chart in an Excel file, created through the "Spreadsheet Excel Writer". The problem is that the pChart only generates images in PNG format, and "Spreadsheet Excel Writer" only supports BMP.

I am being forced to do the conversion from PNG to BMP using another script, but I think it would be very interesting through pChart can choose the image format generated by it.

I hope that my username and my topic this time are not excluded.


Tue Feb 08, 2011 2:46 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Option to choose the image format generated by pChart (B
Hi,

I'm sorry for having removed your thread, this forum is actively spamed by some nice guys and looking at yout nickname I tough it was another robot-driven awesome post. Please accept my appologies.

I've choosen the PNG format because I strongly believe that it's the only one that will have a real future in the www. Anyway, any formats natively supported by the GD library (PNG, JPEG, GIF) can be outputed by this library modifying a bit the render() function of the pImage.class.php file.

Unfortunately, from what I know GD does not support BMP output.

Kind regards,
JD.


Tue Feb 08, 2011 2:57 pm
Profile WWW
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Option to choose the image format generated by pChart (B
Bmp2GD? http://www.phpclasses.org/package/5916-PHP-Convert-images-in-the-BMP-format.html


Attachments:
bmp-2-gd-2010-01-06.zip [3.77 KiB]
Downloaded 712 times

_________________
Image
Tue Feb 08, 2011 5:26 pm
Profile WWW
New pChart user
New pChart user

Joined: Tue Feb 08, 2011 2:37 pm
Posts: 3
Post Re: Option to choose the image format generated by pChart (B
mice32, thats not what i need. This script convert bmp file to the gd supported file types. I need to do the inverse, transform a PNG image to a BMP image.


Tue Feb 08, 2011 8:10 pm
Profile
New pChart user
New pChart user

Joined: Tue Feb 08, 2011 2:37 pm
Posts: 3
Post Re: Option to choose the image format generated by pChart (B
This Class solved my problem.

http://www.phpclasses.org/browse/file/31278.html

Just render the image with the pChart and invoked the method for format conversion. It worked perfectly when imported the image with the "Spreadsheet Excel Writer".

I leave it as a suggestion to include this class or its derivation to a future version of pChart.

Thanks Guys.


Tue Feb 08, 2011 8:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron