Problems using images to fill closed shapes
I have a design made up of a series of closed shapes.I want use Inkscape to ‘fill’ the background of the closed shapes with images of different types of wood. I have managed to partially succeed but there are problems getting a totally satisfactory result.The link
https://home.mycloud.com/action/share/247eaacc-4b9f-4cc9-9aae-bf827cea8f2e https://home.mycloud.com/action/share/247eaacc-4b9f-4cc9-9aae-bf827cea8f2e
is to a pdf file which gives details of how far I have got and the questions I still have.The link also has 3 svg files which are used in the description given in the pdf file.
It would be good to know if anyone can suggest how I can overcome the current issues.
Best regards
Henry Merryweather
A. When I read your file into Inkscape, I get a width of the larger rectangle to be 50px (actually 50.1px as it includes the stroke width). I can't tell from the screenshot, but you might have changed the units used by the GUI to be millimeters which would give you 13.256. Changing the units in the GUI does not change the SVG file which always uses pixels. CSS defines that one inch is equal to 96px, all other units follow from that.
B. The wood pattern is being generated by a "filter" which applies a series of operations ("filter primitives") to the object. The "white" border I think you are referring to is the area the filter which by default extends around the "filtered" object (i.e. the rectangle) by 10%. This is needed as several of the "filter primitives" shift pixels in and out of the rectangle so space needs to be reserved so they are not lost. See: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Filter_effects or http://tavmjong.free.fr/blog/?p=1451
C. When you are copying a filter from one object (the wood sample you found on the web) to another (the rectangle in your drawing), you should paste the "style" (Shift-Ctrl-V).
D. If the wood grain doesn't fully fill your object, you can shift the filter via changing the filter area, under the "Filter General Settings" of the filter editor (Filters->Filter Editor...).
E. Don't know. I don't use EMF.
BTW, the file from the CAD system is using SVG Tiny 1.2 which is supported by almost no one these days. The file, itself, does not define a width or height or a 'viewBox'. If width and height are missing, Inkscape uses the CSS recommended width of 300px and height of 150px. You can set the "Page size" in the "Document Properties" dialog (Shift-Ctrl-D).
----- Original Message ----- | From: "Henry Merryweather" msl2013@btinternet.com | To: inkscape-user@lists.inkscape.org | Sent: Friday, September 3, 2021 10:20:24 PM | Subject: [Inkscape-user] Problems using images to fill closed shapes | | | | | | | I have a design made up of a series of closed shapes. I want use | Inkscape to ‘fill’ the background of the closed shapes with images | of different types of wood. I have managed to partially succeed but | there are problems getting a totally satisfactory result. The link | | https://home.mycloud.com/action/share/247eaacc-4b9f-4cc9-9aae-bf827cea8f2e | | is to a pdf file which gives details of how far I have got and the | questions I still have. The link also has 3 svg files which are used | in the description given in the pdf file. | | It would be good to know if anyone can suggest how I can overcome the | current issues. | | | Best regards | | Henry Merryweather | | | | | Virus-free. www.avg.com | _______________________________________________ | Inkscape Users mailing list -- inkscape-user@lists.inkscape.org | To unsubscribe send an email to | inkscape-user-leave@lists.inkscape.org |
participants (2)
-
Henry Merryweather
-
tavmjong@free.fr