Search found 72 matches

by muccigrosso
2020-05-17T02:06:03-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

Re: ccitt files from pdfimages

Try this command: convert -size 3450x3450 g4:alex-039.ccitt alex-039.png Trying to work with this further, so that I could use just IM to handle this, partly because fax2tiff errs in creating a file with an extra row in it (in this case, 5201 instead of 5200). If I give "convert" an absurdly large ...
by muccigrosso
2020-05-13T10:37:58-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

Re: ccitt files from pdfimages

Try this command: convert -size 3450x3450 g4:alex-039.ccitt alex-039.png This works to create a viable png, except that the image height is incorrect and so the bottom of the image is missing. In this particular case it's 5201, according to the output tiff from fax2tiff. IM actually gives an error ...
by muccigrosso
2020-05-13T03:37:20-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

Re: ccitt files from pdfimages

A little follow up. If I make sure that fax2tiff creates an output file with the same parameters as the input which in this case means Group 4 compression and forcing output data to have bits filled from most significant bit ( MSB ) to most least bit ( LSB ), the tiff is nearly identical to the inpu...
by muccigrosso
2020-05-12T06:16:25-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

Re: ccitt files from pdfimages

A little hunting on StackOverflow turned up this question which provided a solution: fax2tiff You can feed the ccitt file to fax2tiff, using the contents of the param file as the options for the command (I'm doing this on the command line), and throwing in -8 to make sure the output tiff is Group 4 ...
by muccigrosso
2020-05-09T15:57:07-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

Re: ccitt files from pdfimages

Thanks for the reply. Indeed I'm not looking to convert the pdf with IM, just work with the resulting ccitt files from pdfimages. And yes, I've tried to just open the .ccitt file with IM and get the following error: magick: no decode delegate for this image format `CCITT' @ error/constitute.c/ReadIm...
by muccigrosso
2020-05-09T03:54:52-07:00
Forum: Users
Topic: ccitt files from pdfimages
Replies: 11
Views: 2566

ccitt files from pdfimages

I frequently use pdfimages to get the images out of PDFs. I like to use the "-all" switch to make sure that the images are extracted in their original format. Often I get pairs of ccitt files, with one file containing the data and the other the parameters, like "test-001.ccitt" and "test-001.param"....
by muccigrosso
2020-04-02T05:21:12-07:00
Forum: Users
Topic: Query about temp files
Replies: 1
Views: 792

Query about temp files

When converting a folder full of files, I can sometimes see files with a ~ appended to the end of an existing file's name appear. So a file like "19.png~" will appear. Am I correct to assume that these are related to the use of temp files in the conversion process? I'm guessing that IM moves the ori...
by muccigrosso
2019-06-08T15:26:30-07:00
Forum: Users
Topic: ImageMagick with Preview
Replies: 12
Views: 5996

Re: ImageMagick with Preview

It works fine with XQuartz on my Mac. Use display, then left-click the image to get the menu. You are correct. My mistake. I had not used that in a while. What I have trouble with is getting coordinate measurement features that used to exist. But perhaps I do not recall the key options to use along...
by muccigrosso
2019-06-07T20:31:08-07:00
Forum: Users
Topic: ImageMagick with Preview
Replies: 12
Views: 5996

Re: ImageMagick with Preview

It works fine with XQuartz on my Mac. Use display, then left-click the image to get the menu.
by muccigrosso
2018-11-26T00:38:03-07:00
Forum: Users
Topic: Analyze a line of pixels.
Replies: 14
Views: 8194

Re: Analyze a line of pixels.

It looks like the gray might work, but since the images appear to be basically grayscale, why not use a highly colored background, like a bright red piece of paper? Finding the gaps with that should be easier.
by muccigrosso
2018-11-22T00:59:37-07:00
Forum: Users
Topic: Convert pixels within IM?
Replies: 3
Views: 4031

Re: Convert pixels within IM?

@snibo, thanks! That's the approach I was looking for. (I often find that I just need a new way of thinking about what I'm trying to do to get IM to work for me.)

Turns out that I don't want to add the border before trimming, or at least I don't want to add a black one. A white one works fine.
by muccigrosso
2018-11-18T18:34:57-07:00
Forum: Users
Topic: Convert pixels within IM?
Replies: 3
Views: 4031

Convert pixels within IM?

I'm working with single rows of pixels in binary images, so a bunch of white and black pixels. What I'd like to do is make sure that all the pixels between the first and the last black ones are also black. For example, if the row were: 0 0 0 1 0 0 1 0 0 0 It would become 0 0 0 1 1 1 1 0 0 0 Can I do...
by muccigrosso
2018-11-18T18:23:59-07:00
Forum: Users
Topic: -rotate more than double jpg size
Replies: 5
Views: 4496

Re: -rotate more than double jpg size

Good to know, though it still re-compresses when that option is chosen.
by muccigrosso
2018-11-18T15:35:42-07:00
Forum: Users
Topic: -rotate more than double jpg size
Replies: 5
Views: 4496

Re: -rotate more than double jpg size

Could you also use exiftool to alter the orientation tag of your jpegs?

Code: Select all

exiftool -Orientation=3 <filename>
Some apps will ignore this tag (like IM), which is why it might not work for you.