DEV Community

Aissa Laribi
Aissa Laribi

Posted on

cmagick v.0.1.4

Hi guys!

Just sharing the new release of cmagick.

What's new?
The functionalities are exactly the same:

  • Convert images
  • Resize images

The main difference is about the test coverage of 100% and the removal of hard sys exit command that is unnecessary.

Image description

Why I have build cmagick?
I explained the reasons in the following post https://dev.to/aissalaribi/cmagick-v012-hn8

Image description

The main features of cmagick v.0.1.4

  • Converting images to the following formats (bmp,eps,gif,tiff,webp,wbmp,tga,png,jpg,jpeg,hdr,exr)
  • Resizing Images
  • Support path arguments

Simple usage

Examples:

To convert images

from cmagick import cmagick

cmagick.convert('website.jpg', 'website.webp')

Enter fullscreen mode Exit fullscreen mode

To resize images

from cmagick import cmagick

cmagick.resize('website.jpg','100x100','website.jpg')
Enter fullscreen mode Exit fullscreen mode

To convert and save in a defined directory

from cmagick import cmagick

cmagick.convert('website.jpg', '/Desktop/newname.webp')
Enter fullscreen mode Exit fullscreen mode

Thank you for reading this small post🙏!

Connect with me on GitHub and pls put ✨star✨ for this package

Top comments (0)