22 Replies Latest reply: Aug 28, 2013 7:41 AM by trshaner RSS

    Missing 1 pixel on Export

    PhotogRob

      I'm doing some HDR. Everything is shot raw (CR2, Canon) and processed in LR5. I sync all settings (WB, Lens Correction, etc.) needed. I export full size jpg (I've tried both exporting jpg and tiff) and everytime I do, the first shot of the series has either 1 extra pixel, or missing 1 pixel either on the long axis, or the short. Doesn't seem to be a rhyme or reason. Since it is 1 pixel off, Neither CS6 or Photomatix will process all the shots. I've checked all the files, and they're all the same dimension when they start out 4176 x 2783. But after processing, the first pic will be 4176 x 2783 and the next 3 or 4 will be 4175 x 2783, or 4176 x 2784, etc...

       

      Windows 7, i7@3.10, x64, 8GB, 2TB hdd.

       

      Has anyone else experienced this?

        • 1. Re: Missing 1 pixel on Export
          areohbee Community Member

          Yep - it's a problem: began in Lr5.

           

          You might be able to fix it by editing export preset and setting size_maxHeight and size_maxWidth to .5 higher - never tried it, but it's a numerical rounding error, or so I/we postulate, thus that might help.

           

          For example:

          size_maxHeight = 4176.5,
          size_maxWidth = 2783.5,

           

          Rob

          • 2. Re: Missing 1 pixel on Export
            PhotogRob Community Member

            Such an odd bug... That seems to have worked (at least this time).

             

            Thanks Rob!

            • 3. Re: Missing 1 pixel on Export
              trshaner MVP

              What Canon camera model are you are using? I can't can't find a Canon camera that shoots 4176 x 2783 images in any resolution mode using Google search.

              • 4. Re: Missing 1 pixel on Export
                CSS Simon Community Member

                Rob Cole wrote:

                 

                Yep - it's a problem: began in Lr5.

                 

                You might be able to fix it by editing export preset and setting size_maxHeight and size_maxWidth to .5 higher - never tried it, but it's a numerical rounding error, or so I/we postulate, thus that might help.

                 

                For example:



                size_maxHeight = 4176.5,


                size_maxWidth = 2783.5,

                 

                Rob

                No, it still rounds down sometimes to one below the value given.  I've noticed this a few times - since LR5.  It's been discussed before here, and I think logged as a bug. 

                 

                Edit: see http://forums.adobe.com/message/5556221

                • 5. Re: Missing 1 pixel on Export
                  areohbee Community Member

                  So a slightly different crop ratio might do it?

                  • 6. Re: Missing 1 pixel on Export
                    CSS Simon Community Member

                    I've not experimented.  It's just annoying that it gets it wrong - it never used to.  I don't want to alter any of my presets, or they won't work when they fix the bug.

                    • 7. Re: Missing 1 pixel on Export
                      PhotogRob Community Member

                      50D w/ ML.

                       

                      I think that was post lens correction fo a 8mm Fisheye. OR, the ML in camera 8mm lens correction.

                       

                      The usual raw size is 4752x3168.

                      • 8. Re: Missing 1 pixel on Export
                        PhotogRob Community Member

                        So far,adding the .5/px seems to stop the high/low variation as I've processed 4 multi-shot HDR composites.

                         

                        We'll see. It is annoying that this software (that isn't cheap) seems to be as buggy as it is and doesn't seem to utilize the x64 system to it's fullest.

                        • 9. Re: Missing 1 pixel on Export
                          trshaner MVP

                          A few more questions:

                           

                          1) You say "I export full size jpeg.". Are you changing the image resolution using LR's 'Crop' tool or Export 'Imaging Sizing' tool?

                           

                          2) What is 'ML?'

                           

                          3) Have you tried using LR's 'Edit in' 'Merge to HDR Pro in Photoshop' or Photmatix. That's what I use for HDR image processing.

                           

                          There should be no need to resize the images and they shouldn't change using 'Edit In.'

                          • 10. Re: Missing 1 pixel on Export
                            PhotogRob Community Member

                            1) No, when I exported, originally, I just used "jpg export, quality 100", no crop (unless it's just single shots, then I usually do a cinematic crop 16:9). The only time I change the export "imaging sizing" tool is if I shoot a quick something that doesn't require a full res shot, so I'll tell it to export, full quality, and 2000px on long side.

                             

                            2) Magic Lantern, a firmware "hack".

                             

                            3) I have, but for some reason the transition to Photomatix isn't working correctly. Going to CS6 is fine, but I usually like doing most of the tone mapping, in Photomatix, necessitating the full size, correct/same pixel size shots.

                            • 11. Re: Missing 1 pixel on Export
                              areohbee Community Member

                              PhotogRob wrote:

                               

                              So far,adding the .5/px seems to stop the high/low variation

                              Good to hear.

                               

                              I'd be interested to know if there are some cases where that does not work.

                               

                              Thanks,

                              Rob

                              • 12. Re: Missing 1 pixel on Export
                                trshaner MVP

                                So even when NOT using LR's Export 'Resize to Fit' (i.e. unchecked) you still see the 1 pixel difference?

                                • 13. Re: Missing 1 pixel on Export
                                  PhotogRob Community Member

                                  Yes, definitely, good. I'll post if a case comes up where it doesn't work.

                                   

                                  Thanks again!

                                   

                                  Rob

                                  • 14. Re: Missing 1 pixel on Export
                                    PhotogRob Community Member

                                    trshaner,

                                     

                                    Yes, that's what had me baffled, just a straight up export, no resize to fit, etc... I still saw the 1 pixel size different. I did see it switch sides, dependant upon exporting to jpg or tiff (16bit), Exporting to jpg resulted in the long side being 1 pixel off, exporting to 16bit tiff resulted in the short side being 1 pixel off. I don't know, it's very odd. I hadn't been doing a lot of HDR work, so I hadn't run into it til last night/this morning.

                                    • 15. Re: Missing 1 pixel on Export
                                      trshaner MVP

                                      Are you absolutely sure ALL of these image files are 4176 x 2783?

                                       

                                      If LR Export  'Resize to Fit' is unchecked the file resolution should remain unchanged, unless there's somethig the Photomatix plugin is invoking.....don't know.

                                      • 16. Re: Missing 1 pixel on Export
                                        AlanUniqueName Community Member

                                        This may be just adding noise, but thought I'd mention it anyway.    I have noticed that the Flickr publish service frequently erronously generates duplicate copies of my images at Flickr if for any reason I republish (Smugmug is generally flawless).

                                        As part of my attempted investigation as to why this might be happening I have noticed that the duplicated images at Flickr frequently have a difference in dimension by 1 pixel.   

                                        Pub service is set to no resizing, Sharpen for Screen and 93% jpg quality, no additional plugins used or involved.

                                         

                                        I have not previously raised this as a bug on the publish service as I can't beleive it would cause the duplicate problem, however this report does strike an accord with me.

                                        • 17. Re: Missing 1 pixel on Export
                                          PhotogRob Community Member

                                          Absolutely, I checked, and rechecked using different RAW processing programs. As well as the mouse over/hover above the image in LR5 (all files associated with the single shot ), all reported same size prior to exporting.

                                           

                                          I'm not using the Photomatix plug in, just the essentials stand alone, so I wouldn't think it would hamper processing at all.

                                          • 18. Re: Missing 1 pixel on Export
                                            trshaner MVP

                                            You say the following concerning how you create the 4176 x 2783 image files.

                                             

                                            I think that was post lens correction fo a 8mm Fisheye. OR, the ML in camera 8mm lens correction. The usual raw size is 4752x3168.

                                             

                                            I still don't understand where your camera's 4752 x 3168 raw image files are being cropped to a 4176 x 2783 raw file, or are they not raw files? A raw file's image data can't be modified. The only way to crop a raw file is to put the crop information into an XMP sidecar file, or directly into a DNG file copy.

                                             

                                            Perhaps you could post a 4176 x 2783 raw image file and XMP sidecar file that has the 1 pixel Export issue to a download site. That's probably the quickest way to determine what's happening....cause I still don't have a clue!

                                             

                                            As C S S Simon stated if you start changing Export presets they aren't going to work correctly in a future update. You aren't even using the 'Resize to fit' Export function so your problem is caused by a completely different issue!

                                            • 19. Re: Missing 1 pixel on Export
                                              areohbee Community Member

                                              if you start changing Export presets they aren't going to work correctly in a future update.

                                              correction:

                                              if you start changing Export presets they aren't going to might not work correctly in a future update.

                                              I would guess they'll work just fine when bug is corrected as well. If not, just re-edit and drop the fractional part... - no big deal. (yes, aggravating, but aiming a cussword at Adobe whilst doing it may help to vent excess steam...).

                                               

                                              Rob

                                              • 20. Re: Missing 1 pixel on Export
                                                trshaner MVP

                                                Rob, you are correct and changing the Export preset appears to be the quickest solution.  But the OP says it occurs with 'Resize to fit' unchecked, so how can this be an Export module issue?

                                                 

                                                We don't how PhototogRob is processing the original raw images to get a 4176 x 2783 file, but unlike Nikon DSLRs all Canon DSLRs shoot exact 2:3 (1:1.5) ratio raw images. A LR Crop using the original 2:3 raw format should produce an exact 2:3 ratio 4176 x 2784 image. I believe this is where the problem is occuring. Why some images crop to 4176 x 2783 and others shot at the same are 4176 x 2784 is still a mystery.

                                                • 21. Re: Missing 1 pixel on Export
                                                  areohbee Community Member

                                                  trshaner wrote:

                                                   

                                                  it occurs with 'Resize to fit' unchecked, so how can this be an Export module issue?

                                                  Maybe it's a crop issue. As we know, the crop ratios are stored as floating point numbers which (presently) lack sufficient precision. Even if not resized for export, Lr still needs to convert a fractional crop to a whole number of edge pixels, and Lr isn't doing that correctly sometimes. So a comprehensive work-around fix involves fixing export presets *and* crop presets *and* crops made with old presets.

                                                   

                                                  The hardest part of that is fixing crops made with old (but not too old) presets (i.e. those defined when crop preset precision lacking). XmpCrop will do it, simply by entering the same crop that you want (it'll re-crop with proper precision), however there is presently no facility for auto-fixing, so one may have to do them one at a time... If Adobe does not repair Lr in 5.2 final release, I'll consider an auto-fix option in XmpCrop. To fix without xmp-crop plugin, just go through and select a different crop, then reselect the "same" (repaired) crop preset.

                                                   

                                                  If unsized exports of uncropped files are wrong then so am I...

                                                   

                                                  R

                                                  • 22. Re: Missing 1 pixel on Export
                                                    trshaner MVP

                                                    There' are a slew of reports relating to LR4 AND new LR5 crop issues, but none of them fit this specific case. Until PhototogRob replies with more information we still don't know what's causing the 1 pixel off 4176 x 2783 crop (s/b 4176 x 2784).

                                                     

                                                    My speculation is that the Magic Lantern (ML) firmware is applying an in-camera raw crop in an XMP sidecar that's causing LR to lose 1 pixel precision...but that's purely a SWAG! The Canon 50D 4752 x 3168 (1.5000) full-size raw image should crop inside LR to 4176 x 2784 (1.5000) and Export without any issues.

                                                     

                                                    The OP can test the ML XMP and raw image files by opening the LR Crop tool, hit 'Reset,' and then select and apply LR's '2 x 3 / 4 x 6' standard crop. Next try the LR Export to Photomatix and see if the files retain the proper 4176 x 2784 pixel dimensions.