darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.85k stars 1.15k forks source link

Targeted image resolution export feature #16771

Open talmholt opened 6 months ago

talmholt commented 6 months ago

Is your feature request related to a problem? Please describe. When exporting image, most photographers will have a mix of portrait and landscape images and in some cases a mix of aspect ratios. The current export function has many good export functions, but I would like to propose one that specifically targets a final image resolution. The purpose is that when delivering images to clients I typically target 3000x2000 images sizes or 6MP.

Today, I have select all the portrait images and export with 2000x3000 and then all the landscape photos and export with 3000x2000 to achieve this goal for 3:2 aspect ratio images ... a mix of aspect ratio images makes this even more complex.

Other tool has an export function that lets the use define the pixel count on the "longest side" ... but when thinking about it ... I actually think have an export function that targets a specific Mega Pixel count is a much better overall solution.

Describe the solution you'd like In the export function add a drop down menu to specifically target an output image resolution in Mega Pixels.

Alternatives This could also be done with having a "longest edge" pixel count... but I think image resolution is better.

Additional context see above.

ralfbrown commented 6 months ago

Export resizing maintains the aspect ratio. So entering 3000x3000 will give you both 3000x2000 landscape and 2000x3000 portrait.

https://darktable-org.github.io/dtdocs/en/module-reference/utility-modules/shared/export/

max size Set the maximum width and height of the exported image(s) in pixels, cm or inches (depending on the selected unit) – zero means that no constraint will be set on that dimension. Exported images will be constrained so as not to exceed either of these values, while retaining the correct aspect ratio. Set both to zero to export with the original dimensions (after cropping). If the entered values exceed the original dimensions darktable will either export with the original dimensions or upscale the image, depending on the “allow upscaling” parameter.

juergenfurrer commented 5 months ago

Would love to have this feature, I have some panoramas with an aspect ratio of 16x4 (16000x4000) This result in a bad vertical resolution when I use the normal export... (3000x750)

github-actions[bot] commented 3 months ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

talmholt commented 3 months ago

I have tested the comment about about writing in 3000x3000 into the export feature and it absolutely does work... However it does not really solve the underlying problem I am trying to solve.

Myself and a bunch of photographers, share photos with clients in various resolutions depending on how much the clients have paid for the photo shoot.

I have have two target resolutions, one is 6MP and the other is 12MP.. customer files.... while this sound like "not that much in 2024"... 6MP is 2000x3000 resolution and it is more than enough for event medium size prints and all online media.

With that... during the development of a portfolio for a client ... I typically end up with most of the photos in 3:2 format, but some of them are in 4:5 and in some cases I also deliver 1:1 format images.

So if I use 3000x3000 for 3:2 format pictures ... using 3000x3000 for export works and I get 6MP files in both landscape and portrait orientation.

But for 1:1 photos I end up with 3000x3000 or 9MP ... that is not my intention ...

So I was hoping for an export option that would target a "final resolution" independent on the aspect ratio of the image itself..

For now I will use the 3000x3000 export option as I find that 90% of my images are 2:3 format...

Again, thank you for a wonderful tool.

Thomas

github-actions[bot] commented 1 month ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.