|
-
Aug 8th, 2007, 12:38 PM
#1
Thread Starter
Addicted Member
convert jpg to bmp
With php, can i convert a jpg image to bmp image?
-
Aug 8th, 2007, 12:43 PM
#2
Re: convert jpg to bmp
Yes, if you have the GD library/extension installed and enabled.
PHP: Image Functions
-
Aug 8th, 2007, 01:03 PM
#3
Thread Starter
Addicted Member
Re: convert jpg to bmp
do you know how?which kind of library? where can I found information?
-
Aug 8th, 2007, 01:08 PM
#4
Re: convert jpg to bmp
Make a phpinfo() page and look for a section titled "gd". If it's there, you have it installed. If not, you will have to enable it in php.ini. It's bundled by default, so you shouldn't have to download anything.
Code:
extension=php_gd2.dll ; Windows
extension=php_gd2.so ; Unix
-
Aug 8th, 2007, 01:27 PM
#5
Thread Starter
Addicted Member
Re: convert jpg to bmp
ok there is it!!!, but how can i use it?
-
Aug 8th, 2007, 01:30 PM
#6
Re: convert jpg to bmp
Well you could have started by reading that link that I posted.
However here is some (untested) sample code:
PHP Code:
$imgh = imagecreatefromjpeg($img_filename);
image2wbmp($imgh, $output_filename);
-
Aug 9th, 2007, 01:30 AM
#7
Thread Starter
Addicted Member
Re: convert jpg to bmp
I've controlled on web....but wbmp isn't = to bmp.
WBMP is for wap,is monocromatic, while bmp is for pc.
is it wrong?
I need bitmap and not wbmp.
So can i do ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|