• Original Width and Height settings are not always available

    By Ray Davies 2 decades ago

    Sometimes the EXIF information is altered by Photoshop etc and when those pictures are imported the original width and height is not recorded. When the pictures are displayed in Easy Thumbs the width and height is correct so the import script is some how flawed when reading the jpeg header. There are currently a check to ensure that valid data is returned but if none is found the photo (flat) view states "Not Available". The original picture preview rely on the correct value in this column.



    In my work around I added the original width and height editible fields to the photo form so I can manually override them individually and I created an agent that that populates selected picture marked with "Not Available" as a value with the height and width that I select. I know what resolution my cameras work at so it is not an issue to choose the corect resolution.



    The best fix is obviously to get the resolution from the EXIF information but the script library is complex.

    • Re: Original Width and Height settings are not always available

      By Christian Brandlehner 2 decades ago

      Ray,

      the code which reads the resolution of an image was contributed by Nico Prenzel. I do not know how the code works but I do not think it is reading EXIF information from the file.

      I found that there are several JPEG files which do not work with this code, I am not absolutely sure but there seems to be a problem with JPEG files with progressive encoding. So if you save images try to avoid this.

      I you have any idea how to read EXIF information from a file I will be happy to implement it.



      Christian