Open ahsand97 opened 2 years ago
Hi ahsand97, thanks for the pull request. I'll give it a try and integrate it if ok.
Hi ahsand97, thanks for the pull request. I'll give it a try and integrate it if ok.
Thanks, I didn't update the dependencies to the snap version cuz I didn't reallt know how to, so I believe the snap doesn't have the MagickWand dependency yet
Hey I think I implemented support to multiple formats using the ImageMagick high level C API, I already tested with .svg, .xpm, .ico, .png, .jpg and extensionless valid image and it works.
Demonstration: Images used:
extensionless .svg file![image](https://user-images.githubusercontent.com/32344641/146661761-488df2fd-7a93-43b0-b8cd-8748ab167060.png)
.svg file![image](https://user-images.githubusercontent.com/32344641/146661783-1a08245b-f3a0-4b4f-9ee9-63dd84dfeb33.png)
.png file![image](https://user-images.githubusercontent.com/32344641/146661808-a301a1d2-c76c-4a1a-9881-cde1975bf9ec.png)
.xpm file![image](https://user-images.githubusercontent.com/32344641/146661819-fd27beec-9203-442d-826e-09a4a9ed6fdf.png)
.jpg file (almost invisible but is the twitter one)![image](https://user-images.githubusercontent.com/32344641/146661839-743dadf3-30f1-4087-9d4e-745fafa5f7d3.png)
.ico file![image](https://user-images.githubusercontent.com/32344641/146661848-986ff5dc-39b8-4e76-909d-1fbeb0d862c0.png)
PS: Also I refactored some code solving some warnings that Intellij CLion was suggesting.