Are you using the PHP execute(commandline?) instead?
Did you try my PHP version?
Search found 5 matches
- 2014-04-13T02:35:07-07:00
- Forum: IMagick
- Topic: How to create a small, 1bpp BMP text image?
- Replies: 9
- Views: 23901
- 2014-04-13T02:33:49-07:00
- Forum: IMagick
- Topic: How to create a small, 1bpp BMP text image?
- Replies: 9
- Views: 23901
Re: How to create a small, 1bpp BMP text image?
imagemagick 6.8.5
- 2014-04-10T06:08:13-07:00
- Forum: IMagick
- Topic: How to create a small, 1bpp BMP text image?
- Replies: 9
- Views: 23901
Re: How to create a small, 1bpp BMP text image?
Sorry, complete code:
/* Create a new imagick object */
$filename = "test";
$prefix = ".png";
$im = new Imagick();
$im->readimage($filename.$prefix);
$im->setImageFormat('bmp');
$im->posterizeimage(2, false);
$im->setImageColorSpace(imagick::COLORSPACE_GRAY);
$im->setImageType(imagick::IMGTYPE ...
/* Create a new imagick object */
$filename = "test";
$prefix = ".png";
$im = new Imagick();
$im->readimage($filename.$prefix);
$im->setImageFormat('bmp');
$im->posterizeimage(2, false);
$im->setImageColorSpace(imagick::COLORSPACE_GRAY);
$im->setImageType(imagick::IMGTYPE ...
- 2014-04-10T00:31:57-07:00
- Forum: IMagick
- Topic: How to create a small, 1bpp BMP text image?
- Replies: 9
- Views: 23901
Re: How to create a small, 1bpp BMP text image?
$im = new Imagick();
$im->readimage($filename.$prefix);
$im->setImageFormat('bmp');
$im->setImageColorSpace(imagick::COLORSPACE_GRAY);
$im->setImageType(imagick::IMGTYPE_BILEVEL);
$im->setImageFormat('bmp');
$im->writeimage($filename."BW.bmp");
is there an issue if the base image is PNG?
- 2014-04-09T04:29:34-07:00
- Forum: IMagick
- Topic: How to create a small, 1bpp BMP text image?
- Replies: 9
- Views: 23901
Re: How to create a small, 1bpp BMP text image?
Hello, I tried the above code and it creates a BW image, but not a truly 1bit BW image file, which is what I need.
The image info needs to say: Colorspace Gray , not RGB.
Anyone?
The image info needs to say: Colorspace Gray , not RGB.
Anyone?