Search found 10 matches

by Konrad B
2017-02-26T09:42:13-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

You have decided that the pixel at (0,0) is always background. Fine.
yes - exactly - all images have solid backgrounds in this project and are therefore very simple bitmaps ;-)

Best regards,
Konrad
by Konrad B
2017-02-26T09:24:11-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

Thanks guys! I have the solution for PHP environment especially for my problem (to have always white background in 1-bit images) - is very simple: exec("convert input.png -monochrome -colors 2 result.bmp"); $color=exec('convert result.bmp -format "%[pixel: u.p{0,0}]" info:'); if ($color == 'black ...
by Konrad B
2017-02-26T04:06:09-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

I found out, that the filter setting "-blur 0x1" dont works with IM 6.8.9-9 With this code: convert 20701-2757.bmp -colorspace gray -auto-level -threshold 50% -level 0x50% result.bmp (without filter "-blur 0x1") the bmp file (result.bmp) was created - but the background was black. http://bogx.de ...
by Konrad B
2017-02-26T03:35:11-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

Sorry, but this make me confused: I made on my linux-server now a simple php file with 2 lines for test: exec('convert 20701-2756.bmp convert -colorspace gray -monochrome -depth 1 result_1.bmp'); exec('convert 20701-2756.bmp -colorspace gray -auto-level -threshold 50% -blur 0x1 -level 0x50% result_2 ...
by Konrad B
2017-02-26T02:54:10-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

is my IM 6.8.9-9 out-dated?
My viewer is "IrfanView"
by Konrad B
2017-02-26T02:24:17-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

My IM Version: Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-09-23 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff ...
by Konrad B
2017-02-26T01:17:37-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

Hi fmw42, convert 20701-2757.bmp -colorspace Gray -auto-level -threshold 50% -blur 0x1 -level 0x50% result.png the result in your code must be "png" file? I have changed "result.png" in "result.bmp": convert 20701-2757.bmp -colorspace Gray -auto-level -threshold 50% -blur 0x1 -level 0x50% result.bmp ...
by Konrad B
2017-02-25T23:25:36-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

background is always homogeneous color (no gradient or color mix), foreground is text, or text and icon or text, icon and frame - all of those always the same color. per example: Input files 1. input1.bmp: background = color1 (dark), foreground = color2 (light) 2. input2.bmp: backgrond = color3 ...
by Konrad B
2017-02-25T14:41:35-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Re: Convert color bmp always to White & Black not to B&W

Hi Snibgo, yes, the source (input) bitmap files have 24 BitsPerPixel with aliasing. but desired quality of output files is low, very low, per example: http://bogx.de/media/20670-2615_1bit.bmp http://bogx.de/media/20672-2627_1bit.bmp All input multicolor files (whatever their background color is ...
by Konrad B
2017-02-25T13:43:24-07:00
Forum: Users
Topic: Convert color bmp always to White & Black not to B&W
Replies: 20
Views: 14819

Convert color bmp always to White & Black not to B&W

Hi, to convert a color bitmap to 1-bit (black&white) bmp is simple, per example in php environment: @system('convert -colorspace gray -monochrome -depth 1 ' . $sourceColorBmp . ' ' . $oneBitBmp); I need some help to convert diverse color bitmaps (with dark or light background) to "1-bit" - but ...