AI-based smart image color inversion for dark mode

AI-based smart image color inversion for dark mode


That is, only the text/page background color is changed from black text on white background to white text on black background, while the color of the image is maintained.


5 Replies

MA ManojKumar Arumugasamy Syncfusion Team November 11, 2024 11:42 AM UTC

Hi Shompinice,

Currently, we do not support color inversion for PDF pages in dark mode. Due to limitations in the native renderer even if the inversion were applied, it would affect all elements on the page, including images, as the native renderer processes each page as a single image during PDF rendering.

 

Regards,
Manoj Kumar



SH Shompinice replied to ManojKumar Arumugasamy November 13, 2024 01:03 PM UTC

This is exactly why I'm looking for help, is it possible to identify the image area in it and remove the inversion through local AI. That is, actually output as 2 layers, in the inverted layer above, the part that needs to be subtracted is covered with a mask.



MA ManojKumar Arumugasamy Syncfusion Team November 14, 2024 03:02 PM UTC

Hi Shompinice,

As mentioned previously, we currently do not support image extraction from PDF pages. We are using the PdfDocument native API for rendering, which does not provide capabilities for extracting images or inverting colors within the PDF content.


Please let us know if there’s anything else we can assist you with.



SH Shompinice replied to ManojKumar Arumugasamy November 17, 2024 03:23 AM UTC



MA ManojKumar Arumugasamy Syncfusion Team November 18, 2024 10:28 AM UTC

Hi Shompinice,

Yes, the preview thumbnails are images. Those images provided in the thumbnail using get images are images received from the PdfDocument native API that we are using in our component.


Loader.
Up arrow icon