DEV Community

Aissa Laribi
Aissa Laribi

Posted on

5

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay