Hi,
I'm sure this is an easy one, but I can't see for looking.
In AEM Assets, when I upload a 16-bit png, I need the renditions it generates to also be 16-bit png. Currently, I can only get the system to generate 8-bit png's, so Im losing the alpha channel.
Any pointers will be much appreciated
Cheers
Solved! Go to Solution.
Views
Replies
Total Likes
hi @DamionD-321 ,
You can create a custom workflow model to handle the generation of 16-bit PNG renditions. Here's an alternative approach:
Access the AEM Workflow Console:
Define the workflow model:
Add a custom process step:
Here's an example script that sets the rendition options for 16-bit PNG:
// Create custom rendition options
var renditionOptions = {
mime: "image/png",
quality: 1.0,
bitDepth: 16
};
// Get the asset object
var asset = workflowData.getPayload();
// Update the rendition options for all renditions
asset.addRenditionOptions(renditionOptions);
4. Save and activate the workflow model.
This custom workflow model will generate 16-bit PNG renditions for your assets. You can initiate this workflow manually or configure it to run automatically when assets are uploaded or modified.
hi @DamionD-321 ,
You can create a custom workflow model to handle the generation of 16-bit PNG renditions. Here's an alternative approach:
Access the AEM Workflow Console:
Define the workflow model:
Add a custom process step:
Here's an example script that sets the rendition options for 16-bit PNG:
// Create custom rendition options
var renditionOptions = {
mime: "image/png",
quality: 1.0,
bitDepth: 16
};
// Get the asset object
var asset = workflowData.getPayload();
// Update the rendition options for all renditions
asset.addRenditionOptions(renditionOptions);
4. Save and activate the workflow model.
This custom workflow model will generate 16-bit PNG renditions for your assets. You can initiate this workflow manually or configure it to run automatically when assets are uploaded or modified.
Amazing, thank you so much.
I'll give this a go
Cheers
Damion
Views
Likes
Replies