With php, can i convert a jpg image to bmp image?
Printable View
With php, can i convert a jpg image to bmp image?
Yes, if you have the GD library/extension installed and enabled.
PHP: Image Functions
do you know how?which kind of library? where can I found information?
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
ok there is it!!!, but how can i use it?
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);
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 ?