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

AP any version, cropping and export


Recommended Posts

Hi,

 

maybe its not a bug, but it seems very strange behavior for me.

I process Canon 24 Megapixel CR2 files, with 3:2 aspect ratio. In many cases, i later crop them to taste with 3:2 ratio. When i finally want to export these files with 4500x3000 resolution, by entering either the x or y size, with aspect lock enabled, the other axis is always off by 1 few pixels, e.g. 4499x3000. This is very annoying.

af crop 1.JPG

af crop 2.JPG

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

  • Staff

Hey NotMyFault,

If you unlock the background and select it with the Move Tool, are there any decimals in the Transform fields? For example, if I have something like 284.5 px in the Y axis, when I go to export (without background) my resolution will go from the 3472 x 4640 px  to 3472 x 4641 px.

Crop.jpg

Link to comment
Share on other sites

Hi Chris,

 

no decimals found (ORG was background before renaming).

image.png.71f57430aec2021048a4769bf546170d.png

 

Please note that AP always shows different dimensions compared to Canon DPP or Windows Explorer / file properties

AP 6024,0x4020,0 (EXIF while opening CR2, before any crop)

image.png.b9688405b9356bedf86e37a6001f1d03.png

 

CANON DPP 6000*4000

image.png.8506d7d83b5925b0b9edbaca4a7987bb.png

Windows Explorer:

 

image.png.b7ec6a307dd1b8a985d40a4e856a501c.png

 

 

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

  • 4 weeks later...

Hi Chris B,

 

any update regwrding this issue?

For me. there are two related  problems:

1. CR2 picture dimensions shows by apps seem to differ always between Affinity Photo and all other tools (Canon, Windows 10 Explorer by up to 24 pixels in case of 6000x4000 raw file)

2. AP is off when exporting CR2 files by a few pixels, even if the files have been explicitely cropped to e.g. 3x2 ratio before.

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

  • Staff

Hey NotMyFault,

Affinity Photo doesn't throw away the extra sensor data like other apps do as we decided to let the user choose what to do with it.

I'm not sure why you're losing a pixel if you're typing in a specific integer value. Do you have a sample you can attach?

Link to comment
Share on other sites

Hi Chris,

 

below you can find a sample file. AP file created directly from a raw .CR2, developed straight as it is, and applied a crop with 3:2 (6:4) aspect ratio. When you export and enter 2000, you get 2999 instead of 3000 for the other axis.

_MG_1882.afphoto

_mg_1882crop export.JPG

_mg_1882crop issue.JPG

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

I tried to replicate this problem with your picture but when I enter 2000 px in the secoond box and press Tab I got 3000 px in the first box. 

I shut down Photo and reopened the file. This time I get 2999. Can't explain why...

-- Window 11 - 32 gb - Intel I7 - 8700 - NVIDIA GeForce GTX 1060
-- iPad Pro 2020 - 12,9 - 256 gb - Apple Pencil 2 -- iPad 9th gen 256 gb - Apple Pencil 1
-- Macbook Air 15"

Link to comment
Share on other sites

Downloaded your file and played around with it. The very first time I managed to get the correct pixel dimensions, entering 2000 in the height, AP gave me 3000 for width. Every time afterwards I got what you posted, 2999. So I tested a little further.

Loaded up one of my CR2 files, developed and then cropped using the 3:2 (6:4) ratio. Export size entered 2000 in the height setting and AP provided 3001. I don't know if the file sizes have much impact on this irregularity or not. I see you're using a Canon 80D, where I'm using a 70D, which produces a 5496 x 3670 file.

Loaded my file again to grab some screenshots and now AP is giving me the correct dimension, 3000 x 2000. 

Are you Trimming as in Rasterize and Trim, after you crop?

I've managed to get 2997 x 2000, 2999 x 2000, and 3001 x 2000.

 

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

Hi Ron,

cropping was the single and only adjustment. Definitely no trimming. I saved the file with full history, you can check yorself.

You should note that during development, some assistant are active (see below), and lens correnction will apply for example. I don't know if assistent is saved with image files, or local to every installation.

And intentionally, i did a crop with uneven size (size after crop no multiple of 8). If you crop directly to the exact size of planned export, you will be ok most of the time. Unfortunately, there is no easy way to sightly round down the crop size to reach "even" dimensions, besides dragging the mouse -- wich is non-precise and near to impossible to reach e.g. exactly 2000 with mouse (no option to enter exact pixels during crop AFTER selecting 3:2 crop mode).

image.png.b615cd6993e3140ec20523b4a7a1b3ef.png

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

The issue occurs when using crop (and not later when exporting):

When selecting 3:2 crop an using the mouse to reach 4500 for x, AP shows 3001 for y, see screenshot attached.

I tried to achieve 3000 for y, seems to be impossible. Either 2999 or 3001, but never 3000

 

Crop issueJPG.JPG

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

Did some new tests with raw files from Canon 80D, 70D and a few M43.

If I use the crop tool with a ratio of 3:2 (6:4) don't move the mouse and click Apply. When exporting I always get 3000 if I enter 2000 in the height box. Entering 3000 in the width box gives 2000 exactly in the height box. This is with whatever file from any camera or any other images. I think we loose precision if we resize with the mouse.

-- Window 11 - 32 gb - Intel I7 - 8700 - NVIDIA GeForce GTX 1060
-- iPad Pro 2020 - 12,9 - 256 gb - Apple Pencil 2 -- iPad 9th gen 256 gb - Apple Pencil 1
-- Macbook Air 15"

Link to comment
Share on other sites

Some rounding issue? :)

Maybe because 4187x2792 isnt exactly 3:2  but 4187x2791.33 is?

Try it with 4188x2792 = exactly 3:2

Use this calculator it helps a lot:

https://calculateaspectratio.com

Core i7 4770 - AMD Radeon RX 6500XT - 32GB RAM - Asus z87-Pro - Asus Phoebus - Windows 7 x64 SP1 / Windows 10 x64) - https://danielmoravek.com

Link to comment
Share on other sites

@Danielcz:

This might work in theory. My expectation to AP is that the software does the math for me ;-) Really don’t want to do that manually  

 

 

 

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

16 hours ago, NotMyFault said:

@Danielcz:

This might work in theory. My expectation to AP is that the software does the math for me ;-) Really don’t want to that manually  

 

 

 

About crop region tool i dont have any issue 3:2 to do 3000x2000 export (Jpeg) it out and recheck in windows size is 3000x2000. 

only with locked resize document if you downscaling from non 3:2 ratio, unlock it (click on yellow lock between numbers) and punch both numbers in and it will resize to 3000x2000

CropRatio.jpg

 

Core i7 4770 - AMD Radeon RX 6500XT - 32GB RAM - Asus z87-Pro - Asus Phoebus - Windows 7 x64 SP1 / Windows 10 x64) - https://danielmoravek.com

Link to comment
Share on other sites

and here is 4500x3000px try to zoom in little more if you cant hit it or lower mouse sensitivity if you have 1920x1080 LCD (by zooming far out on huge pictures, pixels get interpolated maybe thats why you cant hit that 1pixel)

4500x3000.jpg

Have 27 LCD 2560x1440 and i have to zoom little bit more and it took some time before i hit that 4500x3000 number on such large canvas (it jumped above or below a lot)

It would be no issue but Affinity Photo is missing Auto-scrolling feature while being zoomed in and dragging/enlarging crop area like Adobe Photoshop, this would help with pixel precision marque or crop selection while zoomed in and cropping area behind visible part of canvas.

Core i7 4770 - AMD Radeon RX 6500XT - 32GB RAM - Asus z87-Pro - Asus Phoebus - Windows 7 x64 SP1 / Windows 10 x64) - https://danielmoravek.com

Link to comment
Share on other sites

@Daniel: Tank you for those suggestions.  I’m already aware of several workarounds, please do not post more of them. These are non-precise and hamper the workflow . 

In my view this is a AP bug and should be fixed. Whenever I applied crop with e.g. 3:2, AP should respect this ratio and automatically calculate even pixel counts during export with locked ratio. Other applications behave like this, AP should do, too. 

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

can you make a video?  In my case it takes few seconds to do 3000x2000px crop and export it, maybe i dont understand correctly what you mean. (for confirmation)

I see that crop tool sometimes jumping 1px up and then down while moving it on canvas which isnt ideal, some kind of bug or implementation issue?

Core i7 4770 - AMD Radeon RX 6500XT - 32GB RAM - Asus z87-Pro - Asus Phoebus - Windows 7 x64 SP1 / Windows 10 x64) - https://danielmoravek.com

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.