Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

Firstly I know very little about scaling images, so it is possible that my concerns are groundless.

The issue is this. I am using Affinity Designer for this particular purpose, but the question is of use for other projects with other Affinity Software too.

I have found that there are a pair of very nice webcam feeds from a station, in fact a present terminus, on a heritage railway line. The second one is perhaps more interesting usually, but the different angle relative to the track on the first one is good in some circumstances.

https://www.ipcamlive.com/broadway1

https://www.ipcamlive.com/broadway2

No trains today, but there are planned to be over the weekend.

https://www.gwsr.com/planning_your_visit/what_to_see_and_do/locomotive_roster.html

https://www.gwsr.com/

The railway is single line, but with two tracks at a few places, as here.

Trains arrive from the right of the picture and on the track next to the station building. If the train is locomotive hauled, the locomotive goes beyond both cameras, is uncoupled and runs round the train so that it can pull the train back the other way. If the train is a railcar set then the driver goes to the cab at the other end, so no uncoupling or run round.

For background information in case you might like to go virtual trainspotting,

https://www.gwsr.com/planning_your_visit/visiting_gwsr/2021_Calendar_and_Timetables.html

https://www.gwsr.com/planning_your_visit/what_to_see_and_do/locomotive_roster.html

However, the issue here is that I can get a Print Screen image from the webcam and I can use it to make a greetings card using the Papier facility and I can then frame the greetings card in a frame from Tesco delivered with the grocery.

So all done from home.

The issues is that the webcam image does not have the same pixel size as needed for the greetings card, nor indeed the same aspect ratio.

So either I get all the picture and some white space on the card, or I get to fill the card yet lose some of the picture, or I lose some of the picture and also get some white space.

The webcam can be set to full screen view, which on my computer gives a Print Screen image that is 1366 pixels by 768 pixels, so 16:9 which is an aspect ratio ofabout 1.77 to 1.00

The images for the greetings card is 2171 pixels by 1571 pixels which includes bleed areas, so giving a card 7 inches by 5 inches with 3 millimetre bleed areas, so an aspect ratio of about 1.38.

Maybe it is not the best way to do it, so I am open to advice, but I have been pasting the Print Screen image from the clipboard into Microsoft Paint and saving as a png file with the locomotive number, the date and time and possibly a bit of extra information, such as stationary or in motion all in a long file name so as to know which image is which..

So I start with a blank canvas of 2171 pixels by 1571 pixels at 300 dots per inch and I place the png image onto the canvas and then centre it on the page.

So I could have that as the finished artwork, produce a jpg image, upload to the template at the Papier webspace, add some information about the image, locomotive, place, date, time, other as I choose where the greeting goes, one can change the font to Garamond, black, letter spacing 1.0 and it looks very different from the placeholder text.

https://www.papier.com/landscape-photo-313

There is a Customise button that takes one to a blank canvas, one can upload a jpg file. Notwithstanding the advertising as a photo card and to send the card to someone else as a greetings card, it is possible to use a jpg file of artwork, and send it to oneself as an art print for framing.

The issue that I am asking about is what if I want to scale the card to get a larger image. Previously, both with a picture from the webcam and with artwork I have only scaled by exactly two times or exactly by three times. I know that that can make it blocky but I wanted some prints of bitmap artwork from many years ago and it was risk blocky or go without, but, whilst recognising that I do not have expertise in assessing printed images, from my hobbyist artist standpoint, the prints that I got look very good.

So what I am concerned about is if I scale by some real number, such as 2171 divided by 1366, which is 1.589, will I get sort of funny effects in the print due to rounding or whatever it might be called? What scaling is considered sfe and what is not if starting with a bitmap image please?

That way I can choose the best scale to balance getting a good picture to frame against losing some of the detail around the edges.

William

 

 

 

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

In your situation I would probably figure out the image size I wanted, and use the Crop Tool in Affinity Photo. There you can use the Resample mode, and specify the output size and DPI (probably 300) that you want. You will get a crop box that has the proper aspect ratio for the size you want, and you can drag a corner (maintaining that aspect ratio) to make it cover as much of the image as possible. You can then move it around to compose the image you want, and then Appy the crop.

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

Start as you have been doing, without bothering to work out a scale factor.

2 hours ago, William Overington said:

So I start with a blank canvas of 2171 pixels by 1571 pixels at 300 dots per inch and I place the png image onto the canvas and then centre it on the page.

Drag the corners until the placed image fills the canvas, adjust its position to your liking and then export. The exported image will automatically be cropped to the size of the canvas.

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

I always find these dragging to fit things awkward to do. I can manage most dragging.

I am very much happier when I can put numbers in boxes even if that means getting a pen and using the calculator  app to work out values and write them down.

But the issue I am concerned about is whether if I scale an image by some number other than an integer, will the print get some sort of moiré pattern sort of lines on it.

I suppose I am wondering how within the software, given a bitmap, how is the bitmap of an enlarged version calculated.

William

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

34 minutes ago, William Overington said:

I am very much happier when I can put numbers in boxes even if that means getting a pen and using the calculator  app to work out values and write them down.

Affinity Designer will calculate values for you. For example, if you want the width to be seven fifths of the height, go to the Transform panel and put the desired height in the H box, and then put h*7/5 in the W box.

Affinity Designer Help: Expressions for field input

Quote

But the issue I am concerned about is whether if I scale an image by some number other than an integer, will the print get some sort of moiré pattern sort of lines on it.

Export to PDF and then inspect the result in a PDF viewer. What you see with the zoom factor set to 100% should be a fairly accurate representation of what the image will look like when printed.

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

2 hours ago, William Overington said:

I am very much happier when I can put numbers in boxes even if that means getting a pen and using the calculator  app to work out values and write them down.

That's fine when the image you have matches the aspect ratio you need in the end. But when it doesn't, you will end up with extra white margins, or you'll need to enlarge and then crop.

 

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

54 minutes ago, walt.farrell said:

That's fine when the image you have matches the aspect ratio you need in the end. But when it doesn't, you will end up with extra white margins, or you'll need to enlarge and then crop.

 

Well, I have found that exporting the jpg file needed to make the card does the cropping for me.

So I can have white margin on zero edges, one edge, two edges, three edges, or four edges depending, for each picture, upon whether I want all of the whole image at a smaller size or part of the image at a larger size.

One image 1366 by 768 that I have I doubled to 2732 by 1534 so place it by numbers on the blank canvas hard down at the lower edge and a bit overhanging on each side, so potentially a bit of white at the top, but as the sky is very light and by the fold of the card along the top long edge, the white space might be hardly noticeable.

I am attaching an image. I do not know if the forum software will reduce it in size.

The locomotive is running in reverse because there is no turntable available, so it must run in reverse when hauling a train in one of the two directions. For the return journey it ran forwards after doing a run round of the carriages after being uncoupled. Some locomotives on the line arrive forwards at Broadway then do the return trip in reverse. This locomotive, 35006, used to face the other way but was loaned elsewhere and when it returned it was decided to have it the other way round for a change so as to allow for different photograph opportunities when running forward.

William

 

35006 in_reverse_motion_arriving_20211019_Tuesday_around_noon.png

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

9 hours ago, William Overington said:

Well, I have found that exporting the jpg file needed to make the card does the cropping for me.

Thank you for confirming what I said you would find:

14 hours ago, Alfred said:

Drag the corners until the placed image fills the canvas, adjust its position to your liking and then export. The exported image will automatically be cropped to the size of the canvas.

 

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

39 minutes ago, Alfred said:

Thank you for confirming what I said you would find:

 

Well, it has long been the situation.

I used it in the first image, the one about the poem using language-independent glyphs, in the following thread.

 

 

That facility allowed me to have paint outside the canvas so as to get colour to the edges.

Here is a picture of what appears on screen.

 

 

canvas_screen.png.cb6cab5d88c6bec18ab193bb0ea834eb.png

 

When I exported the jpg file the cropping to the edge of the canvas was done automatically for me by the software as part of the exporting action.

William

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

Here are four images, gathered earlier today.

The first one shows the coaches static after the train has arrived.

The second one shows the locomotive in forward motion going round the train.

The third one shows the locomotive stationary before departure.

The fourth one shows the train underway.

35006_has_arrved_at_about_noon_train_stationary_20211023_Satturday.png.330cc0501cbc7786c41a51813e6d16bc.png

35006_forward_motion_20211023_Saturday_1209.png.e8c862f68f3de9392a27aee57627163d.png

35006_stationary_20211023_Saturday_1218.png.693d47cb986fc04e5d2d6549a1856d8c.png

35006_on_the_way_20211023_Saturday_1220.png.741cc37ad635e9591224fb7e6aa4c9d3.png

 

William

 

 

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

Two more pictures, these gathered this afternoon, a little after 1500 and at 1513 respectively.

35006 going over the points.

35006 under way pulling the train.

 

35006_goes_over_the_points_20211023_Saturday_a_little_after_1500.png.b7dabc15e5079da5dcbc029fd3f478a5.png35006_goes_over_the_points_20211023_Saturday_a_little_after_1500.png.b7dabc15e5079da5dcbc029fd3f478a5.png

35006_and_the_whole_train_20211023_Saturday_1513.png.6435a148549f3ebd50a2c64050ec6d01.png

 

 

William

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

In the previous post I uploaded two images, but managed to include the first one twice in the post.

I have been looking at it and there seems to be an optical illusion of some sort as I found it difficult to realise that it is the same picture twice, as the rake of carriages do not appear parallel to each other in the two copies of the same picture.

Does anyone else observe the same effect please?

I use CTRL - several times to get the two images in full both together and the cariages seem to be at different angles.

William

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

22 minutes ago, William Overington said:

Does anyone else observe the same effect please?

I do. I think it’s a trick of perspective, perhaps aided by the slight curvature of the track, but if you overlay a parallelogram it’s clear that the angle is the same.

CD59CBB4-C020-4AEB-8F61-16A4F375F67B.jpeg.99a01127c1ed1ce5d5e95919c94413bc.jpeg

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

24 minutes ago, William Overington said:

In the previous post I uploaded two images, but managed to include the first one twice in the post.

I have been looking at it and there seems to be an optical illusion of some sort as I found it difficult to realise that it is the same picture twice, as the rake of carriages do not appear parallel to each other in the two copies of the same picture.

Does anyone else observe the same effect please?

I use CTRL - several times to get the two images in full both together and the cariages seem to be at different angles.

William

 

In the bottom image of the duplicate images the carriages appear to be "more" horizontal.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

11 minutes ago, Alfred said:

I do. I think it’s a trick of perspective, perhaps aided by the slight curvature of the track, but if you overlay a parallelogram it’s clear that the angle is the same.

CD59CBB4-C020-4AEB-8F61-16A4F375F67B.jpeg.99a01127c1ed1ce5d5e95919c94413bc.jpeg

 

Though, apart from the vertical edges, the parallelogram does not look to have parallel edges! I am laughing out loud.

I have only just noticed the curve to which you refer. Yet is that white line along the edge of the platform really curved or could it be something to do with the lens of the webcam?

Wllliam

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

51 minutes ago, firstdefence said:

In the bottom image of the duplicate images the carriages appear to be "more" horizontal.

FWIW, I downloaded the two images, opened one of them in AP, & added the second one aligned over it, & set the top one's blend mode to "Difference." The result was pure black, indicating to me both images are exactly the same.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

6 minutes ago, R C-R said:

FWIW, I downloaded the two images, opened one of them in AP, & added the second one aligned over it, & set the top one's blend mode to "Difference." The result was pure black, indicating to me both images are exactly the same.

That is worth knowing. Thank you.

William

 

Until December 2022, using a Lenovo laptop running Windows 10 in England. From January 2023, using an HP laptop running Windows 11 in England.

Link to comment
Share on other sites

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.