Jump to content

Recommended Posts

Posted

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 ?

Posted
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!

Alfred spacer.png
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)

Posted

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.

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.

 

Posted

Even simpler:

  1. new document
  2. add pixel layer
  3. 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.

Bildschirm­foto 2023-03-26 um 18.22.31.png

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.

 

Posted

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

FirstColumnPixels.jpg

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

Posted

Hello,

Thanks for all these quick responses !

That's exactly what I try to do

I will try  (I'm not an experienced user)   :) 

 

Posted

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

 

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

Posted
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?

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Posted
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

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

Posted
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…" )

2136139070_pixelvsvectorstretched.thumb.jpg.c6756898bcce801b983d559ac4290b1e.jpg

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 :)

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.