Search found 29 matches

by myicq
2013-03-26T06:00:21-07:00
Forum: Users
Topic: Set a palette in a Windows BMP file (8 bit) ?
Replies: 3
Views: 6307

Re: Set a palette in a Windows BMP file (8 bit) ?

Excellent idea, the explanation makes sense to me. Although it is annoying when software tries to be "intelligent" on my behalf, just like Excel / Word tends to do. I will make some experiments with your idea there. Do you know how to modify the individual items of the Color array ? Example modify a...
by myicq
2013-03-25T05:38:25-07:00
Forum: Users
Topic: Set a palette in a Windows BMP file (8 bit) ?
Replies: 3
Views: 6307

Set a palette in a Windows BMP file (8 bit) ?

Referring to previous topic on this matter I have come a bit further. Thanks to the help of [snibgo]. I am almost there, but would like to have the final step. What I have so far is the conversion from "Raw" to "header" version of BMP. I now only need to find out how to insert the palette into the i...
by myicq
2013-03-21T07:04:32-07:00
Forum: Users
Topic: Converting raw greyscale BMP image
Replies: 6
Views: 19459

Re: Converting raw greyscale BMP image

The gray: image format did not make any difference.. The file being opened is exactly 35700 bytes, equal to 300 x 118. It's a headerless BMP file in 8 bit format, one byte = 1 colour. My attempts so far: c:\>convert -size 300x118 -depth 8 rgb:qwerty.raw q3.bmp convert: Unexpected end-of-file (qwerty...
by myicq
2013-03-19T14:05:33-07:00
Forum: Users
Topic: Converting raw greyscale BMP image
Replies: 6
Views: 19459

Re: Converting raw greyscale BMP image

snibgo wrote:Your link is broken.
Just tried now from a different location. It's not broken.

If you wish the direct download link, this...
by myicq
2013-03-19T04:15:38-07:00
Forum: Users
Topic: Converting raw greyscale BMP image
Replies: 6
Views: 19459

Converting raw greyscale BMP image

I have some raw BMPs I would like to have converted to BMPs with header. I know the size of each data, and I know that each image contains 256 different colors Example file is here: http://ge.tt/8DniNXb/v/0 Both original (.raw) and converted using paintShopPro. To convert I have selected "greyscale"...
by myicq
2012-07-13T00:28:03-07:00
Forum: Users
Topic: [solved] from PNG til 1bpp BMP in one step ?
Replies: 2
Views: 6659

[solved] Re: from PNG til 1bpp BMP in one step ?

Code: Select all

c:\im\convert drawing.png -type bilevel -colors 256 drawing.bmp
This did the trick. The -colors 256 is from the section on BMP linked to here.

Thanks for all help :)
by myicq
2012-07-12T05:00:53-07:00
Forum: Users
Topic: [solved] from PNG til 1bpp BMP in one step ?
Replies: 2
Views: 6659

[solved] from PNG til 1bpp BMP in one step ?

I need to create a 1bpp BMP image, plain and simple. My source for test is a PNG as exported by InkScape. I think I tried every single combination of -type bilevel, -depth 2 etc etc - but always I get returned a 24 bpp image. I have put sample files here: http://ge.tt/5Ob8ZOK/v/0 What I need is to g...
by myicq
2012-06-29T04:00:29-07:00
Forum: Users
Topic: Efficiently convert PDF to bilevel BMP
Replies: 6
Views: 14921

Re: Efficiently convert PDF to bilevel BMP

Post a link to your pdf file so others can test and verify. If you have a correct result, the post that also. I have uploaded two PDF examples each 4 pages, and converted documents (8 x BMP) APPROX like they need to be. BMPs are 3182 x 4687 px 1 BPP, ideally I would like 4800 wide but this is not e...
by myicq
2012-06-25T12:16:42-07:00
Forum: Users
Topic: Efficiently convert PDF to bilevel BMP
Replies: 6
Views: 14921

Re: Efficiently convert PDF to bilevel BMP

try just convert -density 200 d:\hindi1.pdf -type Bilevel d:\hindi1.bmp Tried, but not desired result or convert -density 200 d:\hindi1.pdf -colorspace gray -type Bilevel d:\hindi1.bmp Will try later. Thanks for your suggestion! meanwhile I have found http://www.digitzone.com/pdftobmp.html which IS...
by myicq
2012-06-22T06:28:21-07:00
Forum: Users
Topic: Efficiently convert PDF to bilevel BMP
Replies: 6
Views: 14921

PDF to BMP -- how to do with single convert ?

I partly found the answer to the issue myself.. c:\IM>convert -type Grayscale -verbose -density 200 d:\hindi1.pdf d:\hindi1.PNG c:\IM>convert -type Bilevel d:\hindi1.png d:\hindi1.bmp But how do I write this as ONE convert line ? I do not need the PNG file, it may well be in memory only. I tried to ...
by myicq
2012-06-20T05:59:16-07:00
Forum: Users
Topic: Efficiently convert PDF to bilevel BMP
Replies: 6
Views: 14921

Efficiently convert PDF to bilevel BMP

I am stumbling a bit on a project. I have a process that works, but I can't find out how to make it efficient. Job : I have a PDF file with writing in Hindi. I need output to be a 1 bit (bilevel) BMP file, preferably at a given size. So far I have the following: C:\IM>convert -verbose -type bilevel ...
by myicq
2012-05-15T10:46:14-07:00
Forum: Users
Topic: Converting Datamatrix to binary string ?
Replies: 1
Views: 3746

Converting Datamatrix to binary string ?

do anyone know if it is possible to convert a datamatrix (or similar) to a binary string ? The following can be given: Source is a 1 bit BMP image (B/W), square, f.ex 16x16 pixel, containing only a datamatrix barcode. Each dot in the matrix is 1 pixel in size. This is of course not printable, but to...
by myicq
2012-04-14T02:06:31-07:00
Forum: Users
Topic: Right-to-left languages?
Replies: 40
Views: 65110

Re: Right-to-left languages?

The new "pango:" coder supports right to left text handling -- automatically. This is very interesting ! Is there any information available (examples, how-tos, tutorials) anywhere about using pango with Perl + Windows ? Or other scripting languages under Windows ? Unfortunately, for other reasons, ...
by myicq
2012-04-11T04:38:31-07:00
Forum: Users
Topic: Right-to-left languages?
Replies: 40
Views: 65110

Re: Right-to-left languages?

This is an old topic, but could not find anyone that discussed it since. My need is to take a text file and line-by-line create a graphic 300px high with that line. ImageMagick is perfect for the job, except it still does not handle unicode correct. I have ImageMagick 6.7.6-5 4.4.2012 Input file tri...