Mainecoon364 Posted February 28, 2024 Posted February 28, 2024 I want to extract parts in a specified size from an rasterized image. For example every shoe from this image. Sneakers I want the size of the extracted images are consistent. Like 2 x 2 cm for every shoe image. How do I do this?
Dan C Posted February 28, 2024 Posted February 28, 2024 Hi @Mainecoon364, Using Vector Masking is likely the best option here, as it allows you to ensure the 'cut' section is the same size for each image - RPReplay_Final1709112000.MP4 Though as shown in the above recording, you might need to use smaller sizes for certain sneakers to ensure that other sections of the image are not included. I hope this helps Mainecoon364 1
Alfred Posted February 28, 2024 Posted February 28, 2024 2 hours ago, Dan C said: Using Vector Masking is likely the best option here Agreed, although I would recommend using rectangles that are only slightly opaque so that you can see the image underneath. This makes it much easier to adjust the sizes and positions to make sure you only get one whole shoe in each cell of the grid. Instead of creating 55 small rectangles — one for each shoe — create one wide rectangle and one tall rectangle: Duplicate the wide rectangle 10 times and the tall rectangle 4 times to make a total of 11 rows of wide rectangles and 5 columns of tall rectangles. Select all of the rectangles and use the Divide command on the Edit (‘…’) menu to create a grid of small rectangles from the overlapping large ones. Even with careful snapping, you’re very likely to end up with several tiny rectangles that you don’t need, but you can easily select and delete them via the Layers Studio. You also need to duplicate the shoe layer so that you have a total of 55 copies. Once you’ve done that, drag one of the coloured rectangles and drop it onto the thumbnail of one of the shoe layers. This will crop/mask the image so that you only see one shoe, and the cropping rectangle will become invisible. Repeat the cropping/masking steps to isolate each of the remaining shoe pictures. Dan C and Mainecoon364 1 1 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)
Mainecoon364 Posted February 29, 2024 Author Posted February 29, 2024 How to export them as individual files for each shoe?
walt.farrell Posted February 29, 2024 Posted February 29, 2024 20 minutes ago, Mainecoon364 said: How to export them as individual files for each shoe? The Export Persona should allow you to create Slices for the Rectangles, and export to individual files. Alfred 1 -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop 1: Windows 11 Pro 24H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 26.0, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.6.1
Mainecoon364 Posted February 29, 2024 Author Posted February 29, 2024 @Alfred Do I duplicate the base layer 55 times and drag the grids into them one by one for masking?
Alfred Posted March 1, 2024 Posted March 1, 2024 14 hours ago, Mainecoon364 said: @Alfred Do I duplicate the base layer 55 times and drag the grids into them one by one for masking? There might be a quicker way, but that’s what I did. I couldn’t see an efficient way to do it with slices. 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)
Mainecoon364 Posted March 1, 2024 Author Posted March 1, 2024 After creating Grids like you did (Creating column and row rectangles and apply edit - divide to them) A lot of layers come up… (which are individual shoes) I don’t understand how do we do It in quicker way after this step. Could you tell It in detail this part please?
Alfred Posted March 1, 2024 Posted March 1, 2024 As I said, I couldn’t see a quicker way. I ended up with the layers that you see in my last screenshot (Curve, Curve, Curve, … Background, Background, Background) and then I mask-nested each of the 55 curve layers to the corresponding picture layer to isolate that particular shoe. Mainecoon364 1 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)
Mainecoon364 Posted March 1, 2024 Author Posted March 1, 2024 Understood. Thank you very much all. Alfred 1
Recommended Posts