compression of image

Hi
Is there a way in syncfusion to compress the jpeg images?
Thanks

3 Replies

SL Sowmiya Loganathan Syncfusion Team March 17, 2020 11:41 AM UTC

Hi Ariel,    
   
Thank you for contacting Syncfusion support.    
   
We can able to adjust the quality of JPEG images by modifying its compression level using Microsoft API (EncoderParameters). Please refer the below link for more details,    
  
Kindly try the solution in the above link and let us know if you need any further assistance on this.    
 
Regards, 
Sowmiya Loganathan 



AR Ariel March 24, 2020 09:09 AM UTC

Hi 

I got an error of  "Attempted to read or write protected memory. This is often an indication that other memory is corrupt.". 
Using
 PdfLoadedDocument ldoc = new new PdfLoadedDocument(sourcePath);
 Bitmap[] images = ldoc.ExportAsImage(index, index); - (in this line i got an error)

Is there any way to fixed this error?

Thanks


US Uthandaraja Selva Sundara Kani Syncfusion Team March 25, 2020 03:42 PM UTC

Hi Ariel,  
   
We are unable to reproduce the issue reported issue in our side with the provided details. Kindly refer the sample from below link which we used to reproduce the issue, 
  
  
Please share the below details to analyze more on this issue and assist you with the better solution   
1.       Simple / modify the above sample to reproduce the issue.  
2.       PDF Document used. 
3.       Replication procedure to reproduce the issue.  
4.       Syncfusion product version. 
5.       .Net Framework 
6.       Visual Studio 
7.       Operating System 
   
Regards,  
Uthandaraja S 


Loader.
Up arrow icon