did78 Posted March 26, 2023 Posted March 26, 2023 Hello, I'm looking for a way to create a new image based on a column extracted from this image, repeated on the whole frame. So that the new image created would be a succession of different lines, each line consisting of the pixel selected in the column. In other words, to simulate a sensor which has its horizontal readout broken and displays the same pixel over each line (not sure it's very clear) any idea to do that ? Quote
Alfred Posted March 26, 2023 Posted March 26, 2023 50 minutes ago, did78 said: I'm looking for a way to create a new image based on a column extracted from this image Did you mean to attach an image? 51 minutes ago, did78 said: (not sure it's very clear) I’m afraid it’s not at all clear to me at present! Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
NotMyFault Posted March 26, 2023 Posted March 26, 2023 There are many ways to do this. In Photo: make a selection of the column. Create new pattern layer from selection. use a rectangular shape to mask the pattern layer. Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
NotMyFault Posted March 26, 2023 Posted March 26, 2023 Even simpler: new document add pixel layer use fill tool. Set mode to "bitmap". Select your image file. The last column will be repeated (or all edge pixels). The next V2.1 will allow to set the "extension mode" and resample mode. What you need is "repeat". In V2.0 it seems to be always "repeat" and "bilinear" The screenshot below is a bit tilted - just to show this is possible. Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
David in Яuislip Posted March 26, 2023 Posted March 26, 2023 I understand this to be that every pixel column is to be the same, if that's correct: Make a marquee one pixel wide Copy Paste special/DIB - it'll end up somewhere weird so reposition to x=0, y=0 <ctrl>J Change x value to +1 <ctrl>J lots Quote Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10
David in Яuislip Posted March 26, 2023 Posted March 26, 2023 Forget that, new pattern layer from selection Old Bruce 1 Quote Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10
did78 Posted March 26, 2023 Author Posted March 26, 2023 Hello, Thanks for all these quick responses ! That's exactly what I try to do I will try (I'm not an experienced user) Quote
did78 Posted March 26, 2023 Author Posted March 26, 2023 Thanks David, Works great + very simple for a newbie Quote
thomaso Posted March 27, 2023 Posted March 27, 2023 A different workflow would simply stretch a cropped part of the image, for instance: lepr 1 Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
John Rostron Posted March 27, 2023 Posted March 27, 2023 To stretch the cropped result, use Document > Resize Document, then click on the lock icon (to unlink the height and width), then enter your desired width in the Width box. OK to confirm. John Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
thomaso Posted March 27, 2023 Posted March 27, 2023 7 hours ago, John Rostron said: To stretch the cropped result, use Document > Resize Document, then click on the lock icon (to unlink the height and width), then enter your desired width in the Width box. OK to confirm. To me it appears easier & more flexible to use a cropping Rectangle Layer … instead of Document > Resize Document. – Or do I miss something? Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
John Rostron Posted March 28, 2023 Posted March 28, 2023 On 3/27/2023 at 5:32 PM, thomaso said: To me it appears easier & more flexible to use a cropping Rectangle Layer … instead of Document > Resize Document. – Or do I miss something? On the few occasions that I needed to do this, I did it as described since it seemed the most obvious way, especially as I have never heard of a cropping rectangle layer. John Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
thomaso Posted March 29, 2023 Posted March 29, 2023 6 hours ago, lacerto said: The rectangle method keeps sharp antialiased edges while its resampling method seems to be bilinear. I might be wrong but doesn't it rather matter that vector generally gets treated different than pixels – and thus the vector cropping mask above causes different edges if stretched? For instance two 50x25 px objects, each placed at X = 0.5 px, then stretched to 500 px width (within the document, not via "Resize Document…" ) By the way, this reminds me to an earlier thread where a choice for the resampling method of object scaling was logged as improvement in V1. (I can't try if it's implemented in V2) On 8/1/2022 at 2:26 PM, Dan C said: On 8/1/2022 at 12:49 AM, thomaso said: but how about for single objects on a page? Unfortunately however I don't believe such control exists for a singular layer, though I will be sure log this as an improvement with the developers as I can certainly understand the use case of such a function Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
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.