[MTE-136] Imaging with png images increases the size Created: 03/Dec/21  Updated: 07/Dec/21  Resolved: 06/Dec/21

Status: Closed
Project: Magnolia Templating Essentials
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0.1

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

Issue Links:
Cloners
clones MGNLIMG-230 Imaging with png images increases the... 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
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 07:41:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.