[MGNLIMG-230] Imaging with png images increases the size Created: 15/Jun/21  Updated: 08/Sep/23  Resolved: 06/Dec/21

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: 3.4.4
Fix Version/s: 3.5.2

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: maintenance, to-verify
Remaining Estimate: Not Specified
Time Spent: 1h
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MTE-136 Imaging with png images increases the... Closed
Problem/Incident
Relates
relates to MGNLIMG-322 Images size increase Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* 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:
Sprint: Global Maintenance 2, Global Maintenance 3
Story Points: 3

 Description   

Steps to reproduce

  1. Upload a PNG to Assets app
  2. Copy the UUID from JCR app
  3. Go to a FTL file and generate an image link using a rendition like thumbnail
    <img src="${damfn.getAssetLink("jcr:b1858280-ad8d-44e9-9063-b76b3eb5658a", "thumbnail")}"/> 
  4. Render the template and download the generated image
  5. Check it size is , at least, 4 times bigger than the original (even its size is smaller)

Expected results

The image size is not dramatically increase

Actual results

The image size is much bigger than the original

Workaround

N/A

Development notes

It doesn't happen if the image format is JPG.
TEST 1:
PNG image size: 4kb
Size of the rendition: 232kb

TEST2:
JPG image size: 103kb
Size of the rendition: 41kb


Generated at Mon Feb 12 02:13:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.