Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sharpen up a pdf ?
#5
(04-09-2021, 04:53 PM)rich2005 Wrote:
(04-09-2021, 04:41 PM)Ofnuts Wrote: I've found that using the Erode filter to widen the lines improves the image a lot. Is there a GMIC equivalent?

Not that I can find. (well there is, one of alfre's but it does not work with multiple layers - produces a black image)
Unless you can provide a bespoke plugin, an alternative for us scripting-deficient mortals is maybe each page as a separate image, then a BIMP batch process. Then assemble the adjusted images into a PDF.

edit: or as I would probably do: use erode manually on each layer, only 35 layers, not a big deal, ctrl-f to repeat last filter.

Can be done a bit more easily in the Python console:

Code:
image=gimp.image_list()[0]
for layer in image.layers: pdb.plug_in_erode(image, layer, 1, 0, 1., 15,0, 255)

Notes:
  • There must be a single image opened in Gimp, otherwise the first line may catch the wrong one
  • After the second line, strike [enter] until you are back to the > > > prompt
  • Don't ask me what the parameters represent Smile
Reply


Messages In This Thread
sharpen up a pdf ? - by abrogard - 04-09-2021, 10:02 AM
RE: sharpen up a pdf ? - by rich2005 - 04-09-2021, 01:17 PM
RE: sharpen up a pdf ? - by Ofnuts - 04-09-2021, 04:41 PM
RE: sharpen up a pdf ? - by rich2005 - 04-09-2021, 04:53 PM
RE: sharpen up a pdf ? - by Ofnuts - 04-09-2021, 09:24 PM
RE: sharpen up a pdf ? - by Ofnuts - 04-10-2021, 07:20 AM
RE: sharpen up a pdf ? - by abrogard - 04-09-2021, 10:48 PM
RE: sharpen up a pdf ? - by rich2005 - 04-10-2021, 01:05 PM
RE: sharpen up a pdf ? - by Ofnuts - 04-10-2021, 07:36 PM

Forum Jump: