Lightroom 5: export isn't resizing exactly to specified long edge.

  • 15
  • Problem
  • Updated 1 year ago
Bug report submitted by Rob Cole on behalf of Soulflare007, who was having problems with login/AdobeID...

Lightroom 5's export isn't resizing exactly to specified long edge. For example, when I restrict long edge to 1920, the exported files are 1919. Same with 1024, I get 1023px files instead. If I export from Adobe Bridge, then the long edges are calculated correctly. This problem didn't happen with LR4. Files being exported were DNG and TIF.

More info here: http://forums.adobe.com/message/54380...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 5 years ago

  • 15
Photo of Little Pale Face

Little Pale Face

  • 63 Posts
  • 3 Reply Likes
Please see this thread for more examples of the error.

http://forums.adobe.com/thread/126183...

Brian
Photo of Matthias Bober

Matthias Bober

  • 11 Posts
  • 2 Reply Likes
Thanks for linking my thread Brian. The issue also crops up with Image Sizing Dimensions.
Photo of Todd Shaner

Todd Shaner

  • 130 Posts
  • 10 Reply Likes
There is a similar problem with the Develop module Crop tool:

http://forums.adobe.com/message/5600339#5600339

The problem occurs due to use of precision to three decimal places for the crop ratio, but only to two decimal places when entering new custom ratios. Please see post #23 at the above link for more details.
Photo of Helmut Steiner

Helmut Steiner

  • 12 Posts
  • 0 Reply Likes
I got the same issue with exporting images. When I export with long side set at 1000px I get images with 999px at the long side. This happens also with other export sizes.

This problem occurs since LR5. With test versions of previous LR software this bug does not occur!
Photo of Christian Oeser

Christian Oeser

  • 1 Post
  • 0 Reply Likes
Got the same problem. I need an exact long size value of 639 pixels and get 638 on export.
Photo of lausianne

lausianne

  • 4 Posts
  • 1 Reply Like
My images, in this case, need to be 200x133px. I already cropped them to that ratio. In Export, I select "Fit to screen"/"Width&height" then enter 200 and 133 into the fields. What I get is 199x133, for example. But not always, seems random. Tried it at home just now and got 200x133 there.
(Edited)
Photo of Todd Shaner

Todd Shaner, Champion

  • 893 Posts
  • 275 Reply Likes
There is a rounding issue in the Crop tool and Export Resize to Fit algorithms. It's generally best to use Resize to Fit  'Long Edge' setting and then enter just the larger edge value. What is the exact size of the cropped original image (xxxxx by xxxxx pixels). On my system entering a 200 x 133 'Custom' Crop Ratio pulls up 2x3/4x6, which is 1.0 to 1.5 Aspect. Using that value the Export Resize to fit would be 199.5 x 133. Using Long Edge = 200 should produce consistent results of 200 x 133.
Photo of lausianne

lausianne

  • 4 Posts
  • 1 Reply Like
Yes, long edge seems to work, my first attempts were successful, at least. Still I'd hope that they'd get this to work properly someday. If my image is not cropped correctly, I should still get the pixels set in the form ... Thanks, Todd!
EDIT: And yes, I do get that silly  2x3/4x6 instead of the ratio that I actually entered. As if LR had not arrived in the web age yet.
(Edited)
Photo of Todd Shaner

Todd Shaner, Champion

  • 893 Posts
  • 275 Reply Likes
Yep, it's a long standing bug. The details and a plugin solution by John Ellis are available at this post: https://forums.adobe.com/message/9050627#9050627
Photo of Rose Pontillo

Rose Pontillo

  • 10 Posts
  • 2 Reply Likes
Making blanks in the the proper sizes, and copy & pasting development settings is the simplest workaround I've found. And doesn't require using a separate program.

Of course, if you aren't using the same sizes regularly; it's not much help.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
This issue is not fixed in all cases. Consider Exportant for those cases when still a problem:

Photo of Helmut Steiner

Helmut Steiner

  • 12 Posts
  • 0 Reply Likes
Thanks for the hint!
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Any better in Lr5.3(RC)?
Photo of Matthias Bober

Matthias Bober

  • 11 Posts
  • 2 Reply Likes
Yay, this seems to be finally fixed in the LR5.3 release candidate. Someone was listening, thanks!
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Yet there was no mention in the release notes / bugs-fixed section. An oopsidental omission, or is it still not fixed in some cases - hmm...
Photo of lausianne

lausianne

  • 4 Posts
  • 1 Reply Like
It is not fixed, not even in 2016. Or it was once fixed, and the issue zombied back into a recent release.
(Edited)
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
********************************************************************
Adobe - has this been fixed? If so, consider adding to final release notes, and tagging this thread..
********************************************************************
Photo of Matthias Bober

Matthias Bober

  • 11 Posts
  • 2 Reply Likes
I can confirm the fix for LR 5.3. The fix has not been mentioned in Adobe's bugfix list though. Anyways I'm happy it's working fine again. Thanks!
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 370 Reply Likes
Thank you Matthias.

I hope Adobe updates forum thread status and documentation.
Photo of Martin Sharrott

Martin Sharrott

  • 4 Posts
  • 1 Reply Like
I use LR 5.3 and cannot agree that this issue has been solved, at least not in my version. I have used export presets in LR for many versions to date, but never had an issue as now. My jpg export preset requires: Image Sizing - Resize to fit - Long Edge - Don't Enlarge - 35.000 cm - Resolution 200 - pixels per inch and nothing else.

Up till now all images, irrespective of aspect ratio, cropped dimensions or whatever, were correctly cropped to 2756px on the long side, with the short side reduced by the same ratio. Smaller images were left alone.

Currently, uncropped images of 5716 x 3744 are correctly resized. An original cropped to (for instance) 5587 x 2235 px is however not resized at all and is exported in the same batch at 5587 x 2235 px.

Can anyone suggest what I may be doing wrong or should alter in version 5.3?

Thanks.
Photo of Matthias Bober

Matthias Bober

  • 11 Posts
  • 2 Reply Likes
Hi Martin, I tried to follow your procedure. Resizing was working fine for me. Was the cropping done with LR crop tool on the 5716x3744 image?
Photo of Todd Shaner

Todd Shaner

  • 130 Posts
  • 10 Reply Likes
The file is exported, but not resized, so I can confirm this issue with LR5.3 on my Windows 7 system using Martin's settings.

If 'Don't Enlarge' is unchecked it works, even though the file is clearly NOT being enlarged!
Photo of Martin Sharrott

Martin Sharrott

  • 4 Posts
  • 1 Reply Like
Hello Matthias.

Yes, I always crop with the LR crop tool. I have a number of cropping presets (such as 2 : 1 or 2.5 : 1) but also use a free crop when something different is needed.
Photo of Matthias Bober

Matthias Bober

  • 11 Posts
  • 2 Reply Likes
Ok, I did that too. Still working fine for me. I'll keep an eye on the issue.
Photo of Todd Shaner

Todd Shaner

  • 130 Posts
  • 10 Reply Likes
It appears ANY 'Custom' Crop Aspect Ratio with 'Don't Enlarge' checked in the Export Resize panel prevents the image from being resized.

LR5.3 on Windows 7 system 64 bit
Photo of Chris Bolton

Chris Bolton

  • 1 Post
  • 0 Reply Likes
Thanks for the info on this, tearing my hair out earlier - unchecked the 'Do Not Enlarge' and it's sorted the problem - not ideal but at least it's working.
Photo of Gary McCullough

Gary McCullough

  • 3 Posts
  • 2 Reply Likes
So how do we now keep it from enlarging images to fit the long edge?
Photo of Gary McCullough

Gary McCullough

  • 3 Posts
  • 2 Reply Likes
I just tested this. And this work-around now has Lighthroom enlarging any smaller image to the specified long edge. That is just great. I want my money back.
Photo of Todd Shaner

Todd Shaner

  • 130 Posts
  • 10 Reply Likes
To be honest I've never used the 'Do Not Enlarge' checkbox and can't think of a good reason to use it. Please explain the specific reason why you are using it and perhaps I can provide a better solution for now.
Photo of Rose Pontillo

Rose Pontillo

  • 10 Posts
  • 2 Reply Likes
"Below you will find the required resolutions for our alternative products. To achieve these exact dimensions you may need to crop your original high-resolution file. However, do not increase the size by resampling in a photo edition program, as this will distort the quality of your work. " 

^ from a photo printing site
Photo of Gary McCullough

Gary McCullough

  • 3 Posts
  • 2 Reply Likes
So this problem is not fixed. Is it too difficult for Adobe to get this fixed six months after the problem was reported?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Worth noting: the original problem was fixed @Lr5.2. Unfortunately, a new (similar) bug crept into v5.3.

So, one work-around is to fall back to v5.2.

Other work-arounds:
* Uncheck "Don't Enlarge" (if really not necessary).
* Export in 2 lots: one with resizing and one without.
* Use Exportant.

Rob
Photo of hemo

hemo

  • 8 Posts
  • 0 Reply Likes
I try to export 8 images from LR5.3
Some 5184x3456 pixel RAW-files (EOS 7D)
Some panorama JPGs created with the iPhone.
The panos are like: 2380x5040 (vertical), 3326x4988 (vertical) and 8192x2366 (horizontal).

Here are my resaults:

Photo of hemo

hemo

  • 8 Posts
  • 0 Reply Likes
I was able to find a workaround by removing the "Do not enlarge"-option.
It looks like LR5.3 handles some JPG panos wrong, when exporting them with the "Do not enlarge" enabled.

Are you intrested in a copy of my files that failed to export correct?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 371 Reply Likes
This is a well-known and easily-reproducible bug - I doubt Adobe needs additional information at this point.

And, to paraphrase Eric Chan: Lr5.4 should be out soon.
Photo of Harry van den Brink

Harry van den Brink

  • 5 Posts
  • 0 Reply Likes
Same problem in LR5.4, it ain't solved
Photo of Harry van den Brink

Harry van den Brink

  • 5 Posts
  • 0 Reply Likes
LR5.4 has still the same problem. Some websites (e.g. www.pentaxphotogallery.com) demand exact 900pix on the long edge...

It only happens in 1 about 1 of 50 photo's ONE pixel is missing...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 363 Reply Likes
As work-around, consider editing your export preset (.lrtemplate file) and bump the max-height by a fraction of a pixel until it exports at the correct dimension (900), for example:

size_maxHeight = 900.4,

Not sure if you need to restart Lr for new setting to take.

Maybe just selecting a different preset, then back is enough - I don't remember.

If it exports at 901, you went too far ;-}

~R.
Photo of Harry van den Brink

Harry van den Brink

  • 5 Posts
  • 0 Reply Likes
Thanx for the suggestion. 900,4 gave 901 on all testphoto's (900 and 899 size) :) If I just go into develop and adjust the crop a little, it then exports correctly with 900 pix. It's a little bit time consuming, I have to do now a manually check on the export size before uploading ...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 363 Reply Likes
Bummer. also consider trying 900.1 ...

I mean perhaps it's just as easy to adjust crop - did you say the photos are cropped to 900 (or 899) too?

Dunno if xmp-crop plugin would be worthwhile for you or not - it supports precision cropping:

http://www.robcole.com/Rob/ProductsAn...
Photo of Harry van den Brink

Harry van den Brink

  • 5 Posts
  • 0 Reply Likes
No, I don't adjust to 900 by cropping, I just made an adjustment approx from 1900 to 1950 and also some on the other side. I don't want to install other plugins, LR should fix this problem. This is not a wish, this a bug which should be not to hard to fix... (IF export is not equal .......)

Plugin btw looks very nice, so thumbs up for offering a solution...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 363 Reply Likes
OK - thanks, fair enough...
Photo of Anand Madhvani

Anand Madhvani

  • 1 Post
  • 0 Reply Likes
I'm having the same problem described with Lightroom CC 2015 on OSX - I want to export images with a fixed width of 350px, mostly they come out at 349.

Tried to hack a solution by entering 351px, but of course, that would work perfectly - images all at 351px...!

Some sort of rounding error, bug really should not be roaming free this long, good thing we are now all on fancy shmanzy subscriptions now so Adobe can roll out patches really really quickly...

Photo of Corey Burns

Corey Burns

  • 1 Post
  • 0 Reply Likes
Hey guys, so I think what you have to do here is since I export my RAW files that are at 5184x3456, when you're trying to export to 1920 x 1080, the program will adjust for the crop factor and export at like 1620 x 1080 because that makes sense to 1080p.

So what works for me is to export at 1920x1280 and then size or crop in after effects or premier. .

Hope this helps.
Photo of Robert Pollai

Robert Pollai

  • 3 Posts
  • 0 Reply Likes
I also noticed this issue with the current Lightroom CC 2017. Using export with width & height, and the width set to 0, the height to 2000 pixel. For 2:3 in portrait orientation that does not result in a round number for the width. In 90 % of the cases LR rounds the width and gives me a height of exactly 2000, but sometimes I get height of 1999 pixel.