@fmw42,
As I already explained, I had the white and black values mixed up the wrong way around.
In my mind I thought that WHITE was #000, and BLACK was #FFF
Search found 23 matches
- 2017-04-18T05:24:24-07:00
- Forum: Users
- Topic: make all pixels below a certain threshold white? [solved]
- Replies: 6
- Views: 6481
- 2017-04-15T21:10:16-07:00
- Forum: Users
- Topic: make all pixels below a certain threshold white? [solved]
- Replies: 6
- Views: 6481
Re: make all pixels below a certain threshold white?
I was referring to absolute white and black, but nevermind it seems that I have mixed the two up.
Black being #000, white being #FFF
Black being #000, white being #FFF
- 2017-04-15T21:01:31-07:00
- Forum: Users
- Topic: make all pixels below a certain threshold white? [solved]
- Replies: 6
- Views: 6481
Re: make all pixels below a certain threshold white?
Are you sure you do not want to make all pixels above a certain graylevel into white to even out all the (near-) white areas.
But isn't white 0, and black 255?
Anyhow, your suggestion of this works:
magick image -white-threshold XX% result
If this is not what you want, then please post an ...
- 2017-04-15T20:23:54-07:00
- Forum: Users
- Topic: make all pixels below a certain threshold white? [solved]
- Replies: 6
- Views: 6481
make all pixels below a certain threshold white? [solved]
Hi,
I'm trying to make all white pixels below a certain threshold white.
I scanned some pages from a book and there are some not-quite-white pixels, that I want to make true white.
I can do this in another image app by using the wand tool with a 20% threshold, then cutting everything and pasting ...
I'm trying to make all white pixels below a certain threshold white.
I scanned some pages from a book and there are some not-quite-white pixels, that I want to make true white.
I can do this in another image app by using the wand tool with a 20% threshold, then cutting everything and pasting ...
- 2017-04-14T22:42:24-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image alignment (updated question)
Thanks fmw42, that worked.
I added the trimming at the bottom however, just to make sure that there were no extraneous not-quite-white pixels.
Cheers.
Thanks GeeMack too.
Have a good Easter guys, whether you celebrate it or not!
I added the trimming at the bottom however, just to make sure that there were no extraneous not-quite-white pixels.
Cheers.
Thanks GeeMack too.
Have a good Easter guys, whether you celebrate it or not!
- 2017-04-14T19:15:41-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image alignment (updated question)
GeeMack has the right idea. 
I want to trim the top, pad 28px at the top, then pad the remaining image to 1024px height.
I want to trim the top, pad 28px at the top, then pad the remaining image to 1024px height.
- 2017-04-14T07:33:33-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Now I'm looking to so something similar, but horizontally instead.
I don't want to center the cropped images horizontally, because all the pages are different lengths
So I want to add a 28px border to the top instead
Then I want to pad the remainder of the image at the bottom to make it 1024px ...
I don't want to center the cropped images horizontally, because all the pages are different lengths
So I want to add a 28px border to the top instead
Then I want to pad the remainder of the image at the bottom to make it 1024px ...
- 2017-04-14T03:11:38-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Ok, now I've got it.
magick *.png -set filename:f "%[t]" ^
-set option:dimensions "%wx%h" ^
-background black -fuzz 25% ^
-gravity east -splice 1x0 ^
-trim +repage -gravity east -chop 1x0 ^
-gravity west -splice 1x0 ^
-trim +repage -gravity west -chop 1x0 ^
-background white -gravity center ...
magick *.png -set filename:f "%[t]" ^
-set option:dimensions "%wx%h" ^
-background black -fuzz 25% ^
-gravity east -splice 1x0 ^
-trim +repage -gravity east -chop 1x0 ^
-gravity west -splice 1x0 ^
-trim +repage -gravity west -chop 1x0 ^
-background white -gravity center ...
- 2017-04-14T02:56:40-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
You use "filename:f" but you haven't set it anywhere.
I tried setting it in the beginning, but then it throws me another error for option:dimensions
magick *.png -set filename:f ^
-set option:dimensions "%wx%h" ^
-background black -fuzz 25% ^
-gravity east -splice 1x0 ^
-trim +repage -gravity ...
- 2017-04-14T00:20:16-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
I can't get it to output multiple files for some reason.
Can someone please take a look at my syntax and tell me what I'm doing wrong?
magick *.png ^
-set option:dimensions "%wx%h" ^
-background black -fuzz 25% ^
-gravity east -splice 1x0 ^
-trim +repage -gravity east -chop 1x0 ^
-gravity west ...
Can someone please take a look at my syntax and tell me what I'm doing wrong?
magick *.png ^
-set option:dimensions "%wx%h" ^
-background black -fuzz 25% ^
-gravity east -splice 1x0 ^
-trim +repage -gravity east -chop 1x0 ^
-gravity west ...
- 2017-04-13T21:00:22-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Yeah, that works.
- 2017-04-13T20:21:30-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Is there a way to pad it evenly on both sides to the original page width?
Because I can't have an arbitrary amount of padding in case the images are different sizes.
Because I can't have an arbitrary amount of padding in case the images are different sizes.
- 2017-04-13T20:10:11-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Perfect, thanks.
That's EXACTLY what I was looking for.
That's EXACTLY what I was looking for.
- 2017-04-13T18:11:22-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
Re: vertical image (page) alignment
Hi fmw42 ,
The images are in PNG format.
There is no virtual canvas offset. It's just a matter of some sloppy (lazy) scanning. :oops:
I'm not too worried about dark spots, it doesn't need to be perfect. It's just the more dramatic shifts that I find off-putting.
Here's an example:
http://i1219 ...
The images are in PNG format.
There is no virtual canvas offset. It's just a matter of some sloppy (lazy) scanning. :oops:
I'm not too worried about dark spots, it doesn't need to be perfect. It's just the more dramatic shifts that I find off-putting.
Here's an example:
http://i1219 ...
- 2017-04-13T17:17:51-07:00
- Forum: Users
- Topic: vertical image alignment [solved]
- Replies: 20
- Views: 15476
vertical image alignment [solved]
Hi,
Is there anyway to vertically crop an image (of text) to the leftmost and rightmost colored (non-white) pixels?
The reason I'm asking is because I scanned an old out-of-print book to make an e-book, and the page margin keeps jumping between pages, and it's bothering me. Sometimes the text ...
Is there anyway to vertically crop an image (of text) to the leftmost and rightmost colored (non-white) pixels?
The reason I'm asking is because I scanned an old out-of-print book to make an e-book, and the page margin keeps jumping between pages, and it's bothering me. Sometimes the text ...