Lillias Posted March 10 Share Posted March 10 Some downloaded .png files come with a checkered background instead of a fully transparent background. I know that there are online facilities which will remove said background for free but I wondered if there was a way of doing it within Affinity Photo or Designer. Thanks in advance for any help with this matter. Quote Link to comment Share on other sites More sharing options...
Alfred Posted March 10 Share Posted March 10 Where are you downloading your PNGs from? It sounds as though you're downloading preview images instead of the real deal. Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Lillias Posted March 10 Author Share Posted March 10 I have downloaded a couple from freepik.com Alfred. Quote Link to comment Share on other sites More sharing options...
Alfred Posted March 10 Share Posted March 10 Look for images that are offered in PSD format. You should find that the checkered background is on a separate layer (which can't be done with 'flat' formats such as PNG or JPEG); this will allow you to select the background layer in the Layers panel and either hide or delete it. Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Lillias Posted March 10 Author Share Posted March 10 I don’t normally have any problems with png files and as I said I know that with the ones (few though they be) that come with an attached checkered background I can remove said background in free online facilities. It can also be done within the full Photoshop but I don’t have Photoshop. I take it that there isn’t a way of doing it then within Affinity unless it came in PSD format. Quote Link to comment Share on other sites More sharing options...
Alfred Posted March 10 Share Posted March 10 3 minutes ago, Lillias said: I take it that there isn’t a way of doing it then within Affinity unless it came in PSD format. I'm sure it can be done, Lillias, but I strongly suspect it would be very fiddly! Can you provide a link to one of the images you've been having trouble with? Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Lillias Posted March 11 Author Share Posted March 11 This is a file I downloaded from freepik...at first glance it looks like a png file but on looking again it has the file extention of jpg! But this is the kind of file I am talking about...see attached. I have discovered that if you unlock it and drag it to one side you see another checkered layer below. Thanks Alfred. Edited: replaced image with link to same... freepik.com/free-vector/various-tropical-leaves-transparent-background_16460227.htm, Quote Link to comment Share on other sites More sharing options...
Ldina Posted March 11 Share Posted March 11 @Lillias Attached is a PNG file without the background, plus an afPhoto file, so you can see what was done. It's not perfect, but it's pretty good. In AP v2.4.0, I used a Procedural Texture filter to separate saturated colors from the desaturated colors (i.e., the checkerboard), which eliminated the whites and grays, but it also lost the foliage drop-shadows, which are also desaturated and very close in tone to the gray checkerboard squares. Those shadows can be reconstructed pretty easily by duplicating the layer, offsetting it, and making it an appropriate shade of gray. The Procedural Texture filter also removed some of the dark grays and blacks in the foliage itself (because they are also desaturated colors), so I used a mask on the PT Layer to get them back. The Curves Layer adjusted the Alpha Channel to clean up some of the semitransparent pixels along the edges of the foliage. The image itself dictates what approach may work best, and it seemed to me that a saturation approach might be a good place to start. Remove Checkerboard.afphoto Quote 2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish Link to comment Share on other sites More sharing options...
NotMyFault Posted March 11 Share Posted March 11 Thanks @Ldina for the idea. I make a variant not relying on PT filters, and re-generating the shadows: part 1: create mask add HSL adjustment set saturation to minus 100 set blend mode to difference add levels adjustment, set black level to 3% add hsl adjustment, set sat to minus 100% (but keep blend mode normal this time) add levels adjustment, set white level to 0 now you have a black / white result what can be used as mask. You may add more of HSL / levels to optimize. merge visible rasterize to mask part 2: arranging layers and preparing shadows deactivate helper layers. sample light grey from original layer (about 181/255) Duplicate original layer nest mask layer to original image in masking position duplicate again group original layer with mask Assign this color to group move group which’s shows shadow into correct position. I‘m giving this receipt as the JPG shows severe compression artifacts and you need to start the process on the original file hopefully in better quality. Ldina 1 Quote Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
loukash Posted March 11 Share Posted March 11 (edited) 9 hours ago, Lillias said: This is a file I downloaded from freepik...at first glance it looks like a png file but on looking again it has the file extention of jpg! But this is the kind of file I am talking about...see attached. That would be freepik.com/free-vector/various-tropical-leaves-transparent-background_16460227.htm, right? If you click the green Download button, the zip archive only contains a JPEG and an EPS file. Neither of those files contains any transparency whatsoever. Even worse, the EPS is here obviously only used as a container for the very same JPEG image within – which is absolutely pointless from any technical point of view… *) Not sure if there would be any true transparent file included if one goes "premium". I don't have any account there. So the next time you may want to specifically search for images that are being delivered as transparent PNG, or as a PSD which also support transparency and may include multiple layers that you can turn on and off. *) edit: Either that, or this Illustrator EPS contains data that can only be correctly interpreted by a compatible Illustrator version. Edited March 11 by loukash see below Quote MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2 Link to comment Share on other sites More sharing options...
Lillias Posted March 11 Author Share Posted March 11 Thanks @Ldina and also @NotMyFault for both your considered contributions. You have given me much food for thought. Fortunately I don’t come across this type of file very often. Quote Link to comment Share on other sites More sharing options...
Lillias Posted March 11 Author Share Posted March 11 10 minutes ago, loukash said: That would be freepik.com/free-vector/various-tropical-leaves-transparent-background_16460227.htm, right? @loukash you are correct and no I won’t be going ‘premium’ and don’t have an account there. Thank you for that information however. We learn something every day as my old granny used to say. loukash 1 Quote Link to comment Share on other sites More sharing options...
loukash Posted March 11 Share Posted March 11 8 minutes ago, loukash said: this Illustrator EPS contains data that can only be correctly interpreted by a compatible Illustrator version So, I have actually opened the EPS using Illustrator CS5 on my "antique" MacBook, and it is a vector illustration, thus the checkerboard background can be disabled. But the EPS can't be correctly interpreted by Affinity as vector data, it will only generate a bitmap preview. 2 minutes ago, Lillias said: We learn something every day as my old granny used to say. Oh, that's something that happens to me daily, too! Lillias and Alfred 2 Quote MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2 Link to comment Share on other sites More sharing options...
walt.farrell Posted March 11 Share Posted March 11 One comment about using these forums, @Lillias: When you want to "tag" another user to get their attention, you need to do it by typing the @ sign and then starting to type their username and then picking the right name from the popup list that appears. If you don't pick from the list, you just get plain text, like @lillias and that won't work to notify them of your post. Alfred and Lillias 2 Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
Alfred Posted March 11 Share Posted March 11 31 minutes ago, walt.farrell said: One comment about using these forums, @Lillias: When you want to "tag" another user to get their attention, you need to do it by typing the @ sign and then starting to type their username and then picking the right name from the popup list that appears. If you don't pick from the list, you just get plain text, like @lillias and that won't work to notify them of your post. In this particular case it didn’t matter, since @Lillias quoted @loukash at the top of her post, but it’s a useful detail for forum users to be aware of. Lillias and walt.farrell 2 Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
loukash Posted March 11 Share Posted March 11 1 hour ago, loukash said: I have actually opened the EPS using Illustrator CS5 on my "antique" MacBook, and it is a vector illustration, thus the checkerboard background can be disabled For the record, when I resaved the EPS as *.ai (version CS5) with PDF stream, Affinity can then easily open the illustration as native vector. In the meantime, I have converted the file for @Lillias as native afdesign and sent it to them privately. VectorStyler can essentially interpret the 66cn_pc96_210607.eps as vector illustration, too, but there are errors and it would require quite some cleanup. I also tried a few online converters, but none can deal with the EPS as vector and they convert to (partially lousy) bitmap instead. ~~~ Lesson to be learned here: Hold on to your perpetually licensed good ole Schmadobe apps, folks! You still may need them! Lillias and Alfred 2 Quote MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2 Link to comment Share on other sites More sharing options...
Lillias Posted March 11 Author Share Posted March 11 Thank you one and all for your help and also the manner in which you provided that help - as in not making me feel stupid as can happen on some forums. Alfred and loukash 2 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.