When requesting json meta information of an image, the fileSize returned is the same irrespective of any transformations.
It would be perhaps better to return the both original and processed sizes? fileSizePre and fileSizePost.
Current example response for reference:
{
"fileName": "hotel-2019-hero.jpg",
"cacheReference": "f2456d6119a2f27562d3f9abf63b9fd6cd3bb531",
"quality": 75,
"trim": 0,
"trimFuzz": 0,
"resizeStyle": "aspectfill",
"gravity": "None",
"filter": "lanczos",
"blur": 0,
"strip": 0,
"rotate": 0,
"flip": 0,
"ratio": "16-9",
"devicePixelRatio": 0,
"format": "jpg",
"fileSize": 263987,
"primaryColor": "#a7b0ba",
"palette": {
"rgb": [
[
111,
116,
125
],
[
109,
81,
76
],
[
166,
195,
230
],
[
135,
57,
77
],
[
148,
78,
43
]
],
"hex": [
"#6f747d",
"#6d514c",
"#a6c3e6",
"#87394d",
"#944e2b"
]
}
}
When requesting json meta information of an image, the
fileSizereturned is the same irrespective of any transformations.It would be perhaps better to return the both original and processed sizes?
fileSizePreandfileSizePost.Current example response for reference:
{ "fileName": "hotel-2019-hero.jpg", "cacheReference": "f2456d6119a2f27562d3f9abf63b9fd6cd3bb531", "quality": 75, "trim": 0, "trimFuzz": 0, "resizeStyle": "aspectfill", "gravity": "None", "filter": "lanczos", "blur": 0, "strip": 0, "rotate": 0, "flip": 0, "ratio": "16-9", "devicePixelRatio": 0, "format": "jpg", "fileSize": 263987, "primaryColor": "#a7b0ba", "palette": { "rgb": [ [ 111, 116, 125 ], [ 109, 81, 76 ], [ 166, 195, 230 ], [ 135, 57, 77 ], [ 148, 78, 43 ] ], "hex": [ "#6f747d", "#6d514c", "#a6c3e6", "#87394d", "#944e2b" ] } }