legin Posted November 10, 2018 Share Posted November 10, 2018 I've been trying to find a method within Affinity Photo to extract hand drawn and scanned pencil sketches from their background. Something the same as this photoshop technique would be ideal https://www.youtube.com/watch?v=KE9V3-K8SwI Any ideas and help would be very welcome. Quote Link to comment Share on other sites More sharing options...
toltec Posted November 10, 2018 Share Posted November 10, 2018 Er, it's an awful lot easier. Make sure the document is set to Transparent. Document > Transparent Background, then go Filters > Colours > Erase white paper. That's it. It is also possible to adjust the transparency of the Alpha channel to lighten or darken the pencil strokes (or rather, the edges of them) by applying a Curves layer set to adjust Alpha. mokry and stokerg 1 1 Quote Windows PCs. Photo and Designer, latest non-beta versions. Link to comment Share on other sites More sharing options...
legin Posted November 10, 2018 Author Share Posted November 10, 2018 Yep, you're right that is certainly a lot easier! Although this is where I show my lack of experience - How do I now save that extracted pencil sketch as a selection that can be re-coloured, etc.? Many thanks. Quote Link to comment Share on other sites More sharing options...
legin Posted November 10, 2018 Author Share Posted November 10, 2018 I think I've just answered my own question - Ctrl+Click on the layer icon to make a selection from that layer!! Thanks again. Quote Link to comment Share on other sites More sharing options...
mokry Posted May 4, 2020 Share Posted May 4, 2020 Thanks @toltec for this post, I'll try this method for my pencil drawings. I used to do that by selecting the sampled color first (select sample color) and then hitting delete, but this method not always gives the desired effects. Quote Link to comment Share on other sites More sharing options...
acsr Posted January 15 Share Posted January 15 In Affinity Photo I missed an action I used in Photoshop from Media Militia used to isolate pencil strokes from a white background.. Today I discovered a quite simple order of steps, but had not the time to automate this (I am still not familiar with these steps in Affinity Photo yet). Advice in advance: This description may look long at first read, but you can speed up with exercise quite good or even automate the standard adjustments and layer operations between the manual tasks as macros one day. Knocking out the pencil strokes Adjust the basic lighting and contrast to get an almost white background and strong strokes matching the density of your expectations whenon white background. When using non destrive settings, combine the master and the adjustment layers in one group. Duplicate the group and keep at least one for later adjustments. Change the mixing mode of the copy of the group to multiply. Select the group and render the group as mask Put an opaque pixel layer below and fill with with full density of black (or later with experience with another stroke color) Select the mask and the pixel layer and make sure others are deselected to keep them as backup. Merge the selected layers into one. You now have one layer with isolated opaque black pencil strokes and mixing mode normal Usually you can duplicate this layer to increase density in the dark areas and merge these again or keep them for adjustment or later reuse. Knocking out the background areas of objects in white and or prepare for coloration. Motivation: For cartoon like content it is nice to have overlaying elements like e.g. a hand in front of the body, that covers up content behind. Duplicate the knocked out pencil layer and make the upper invisible and therefore lock it. You can alternatively keep it above , lock it and set transparency to 25% to keep the lines visible during the next task. We now remove isolated strokes and dirt/dust without fills completely from this layer (they are preserved in the backup/invisible stroke layer) Now adjust our pencil to a pencil stroke similar to the regular ones. Diameter, roughness etc. should match, but it is just a coarse match necessary. We use full black as colour Adjust the Eraser similar as well and select 100% opaque white as colour. We now use the black pencil tip to close open gaps between originally and intentionally not closing areas. We get them back later from the strokes layer. We use the white one later to cut back areas filled with white not matching our expectations. So we have a chance to fix minor mistakes later and can speed up the closing of the gaps With the magic wand we now create a selection and add/select all areas outside of intended white fills, and add / subtract holes as well. Now we expand the selection by minimum 2 pixels (more if necessary). It shrinks underneath the black lines, simliar to trapping. Add a new pixel layer under the strokes layer and invert the selection. Fill the whole selection with white. If your strokes layer is now set to visible, you can hide the selection master and keep it for backup. If you are lucky you are already done and have nice strokes with a seperate opaque white background. I prefer to touchup the often too clean gaps in the white layer using the rough pencil style eraser to trim the white contous uín gaps or below lighter grainy strokes to my needs. You can see at one how it ends up. Now clean up your file, keep a masterversion with all you need for later adjustment and use the export persona to export nice PNG or tiffs with white background. If you like you can vectorize the stroke and fill layers and use then as startpoint for vector graphics as well. Example with layers (adjustments are in german) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.