[RESPDAM-89] Bluriness for focal point variations Created: 07/Aug/23  Updated: 21/Aug/23

Status: Open
Project: DAM Focal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christoph Damm Assignee: Adrien Manzoni
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File asset_original.jpg     File focalpoint_958.webp     File original_webp.webp    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: Services

 Description   

Hello,

We're using the focal points module for a client and i can observe some bluriness on pictures which I can't explain.

Background:

  • we have the webp imaging generator to it's default of 100
  • we have several variations defined via decorator
  • I tried setting the interpolation to bicubic already, no change

 

Issue:
We for an image we define a srcset, each linking to the variation and a given width within that variation.
However, when comparing the images it looks to me that on the smaller images the images get blurry.

 

Please find attached an example of images:

1) original jpeg (downloaded from asset app)

2) original webp returned from focal point , req via: .imaging/focalpoint/original/dam/jcr:...../......

3) return of focalpoint with width 982, req via: .imaging/focalpoint/default/958x/dam/jcr:...../......

 

Focal point is defined like this via decorator:
 

variations: !override
  default:
    description: 16x9 Standard
    minHeight: 144
    minWidth: 256
    ratio: 16/9
    allowedWidths:
      - 256
      - 426  
      - 640
      - 848
      - 958
      - 1024
      - 1262
      - 1280
      - 1600 


 Comments   
Comment by Raphael Falvo [ 15/Aug/23 ]

Hello chrisD ,

Could you please specify the version of Magnolia and the DAM Focal module in which you encountered this issue?

Comment by Marvin Kerkhoff [ 21/Aug/23 ]

We found the bluriness in Version 6.2.34 and version 2.4 of focal module. My guess is that the issue is not dependend on the focal module only. We also know that in some image cases the original magnolia resizer is not perfect. In our own magnolia image module we have used https://github.com/rkalla/imgscalr in the past. But since this lib is not updated by the maintainer anymore we have some security issues with dependencies here https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15250

 

I would not recommend the imgscalr lib anymore but i highly suggest checking other libs which result in sharper results. Often you can recognize blurry outlines in cut out product images on white backgrounds. If you use the imgscalr they are extremly sharp without a huge change in filesize.

Generated at Mon Feb 12 00:42:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.