bug to consider

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arturkulik
    Member
    • Apr 2025
    • 86

    #1

    bug to consider

    Hi,
    for a couple of weeks we get occasional critical error on images:
    Click image for larger version

Name:	image.png
Views:	0
Size:	84.6 KB
ID:	124509
    original version of this error was without path and type just No width or height, we edited one file to get more info anout error and this is what we found:

    Click image for larger version

Name:	image.png
Views:	0
Size:	27.2 KB
ID:	124510
    Click image for larger version

Name:	image.png
Views:	0
Size:	115.5 KB
ID:	124511

    it takes place when Espo tries generate thumbnail in size medium on case or email (for sure on other entities displaying images like thumbs) containing attachment like:

    Click image for larger version

Name:	image.png
Views:	0
Size:	8.2 KB
ID:	124512

    small file with few pixel of height

    and the effect is no preview but img links:
    Click image for larger version

Name:	image.png
Views:	0
Size:	46.4 KB
ID:	124513

    So to continue:


    should we consider it like a bug and for example stop creating thumbs when original images has smaller dimensions than thumbnail?​​​
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9639

    #2
    Can you provide with a sample image to reproduce? I could not reproduce with an image smaller than a thumb size.

    Comment


    • yuri
      yuri commented
      Editing a comment
      It could happen if the the width to height ratio is very large. Like width 512, height is 2. Is it your case?
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9639

    #3
    Fix: https://github.com/espocrm/espocrm/c...4e8c2e0ee7c72a

    Comment


    • yuri
      yuri commented
      Editing a comment
      Making it as a link but not preview is bit trickier. We don't know the real size of the image before it's rendered.
  • arturkulik
    Member
    • Apr 2025
    • 86

    #4
    thank You, we fixed that but it will be valid till next espo update

    i attached one example file

    Click image for larger version

Name:	image001.png
Views:	0
Size:	210 Bytes
ID:	124524

    with error like
    Click image for larger version

Name:	image.png
Views:	0
Size:	11.4 KB
ID:	124523
    Attached Files

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9639

      #5
      With the fix, it displays for me like this:

      Click image for larger version  Name:	image.png Views:	0 Size:	5.7 KB ID:	124527

      The is a generous padding area around the thin image, hence it's easily clickable.

      Comment

      • arturkulik
        Member
        • Apr 2025
        • 86

        #6
        Originally posted by yuri
        With the fix, it displays for me like this:

        Click image for larger version Name:	image.png Views:	0 Size:	5.7 KB ID:	124527

        The is a generous padding area around the thin image, hence it's easily clickable.
        thank You, will it be included in further Espo builds

        Comment

        Working...