Post Reply 

maintain vector stroke width during rasterization import?

May 18, 2012, 17:18 (This post was last modified: May 18, 2012 17:19 by leeoniya.)
Post: #1
maintain vector stroke width during rasterization import?
Hi,

I was wondering if there was any way to maintain stroke width (with antialiasing off) when importing/resampling vector files, like pdf. photoshop does this, i think.

i made a test case that shows the issue in the attached files. the PDF is a 1px-stroked square. when i try to rasterize it to 100dpi (or any dpi other than 72) using Gimp or any tool that relies on ghostscript for rasterization (imagemagick, mupdf, xpdf) i get a square with unevenly stroked edges. photoshop's algo maintains the stroke width in favor of maybe less optimal positioning.

is there any way to make Gimp or any other pdf->png rasterization tool (ghostscript included) prioritize stroke widths over positioning?

thanks!

original:

.pdf  drawing.pdf (Size: 960 bytes / Downloads: 97)

gimp:
   

photoshop:
   
Find all posts by this user
Quote this message in a reply
May 18, 2012, 22:20
Post: #2
RE: maintain vector stroke width during rasterization import?
i popped it open in inkscape and the stroke looks ok to me.

anyhow, i understand the difference between raster and vector. i actually NEED this rasterized because i'm writing image analysis code for HTML5/canvas that does feature detection. this is not being rasterized for editing/manip.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Stroke path problem. caz 3 813 Aug 2, 2014 13:28
Last Post: caz
  Stroke path options MartinT 0 521 May 18, 2014 17:58
Last Post: MartinT
  wrong import bitmaps with gimp 2.8.10 (Fedora 20) mario.storti 6 1,162 Apr 9, 2014 11:11
Last Post: mario.storti
  Hi Gimp Users, brush stroke effect suggestion? PNGer 4 2,116 Apr 8, 2014 11:38
Last Post: PNGer
  Import paths? No, import them correctly! Marscaleb 4 847 Mar 1, 2014 07:35
Last Post: iForStyle007

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS