How to Bulk Clone and Convert PNG Files to WebP in cPanel

This article provides a guide for how to bulk clone and convert PNG files to WebP in cPanel. This article is intended for cPanel Hosting and Reseller Hosting users.

How to Bulk Clone and Convert PNG Files to WebP in cPanel

To bulk clone and convert PNG files to WebP in cPanel, follow the steps below:

  1. Login to your account via SSH.
  2. Navigate to a directory directly containing the PNG files (i.e. /wp-content/uploads/2025/07/)
    cd /home/user/public_html/wp-content/uploads/2025/07
  3. Run the following command to create a .webp of each .png while also retaining the original .png files:
    mogrify -format webp *.png
  4. Once the terminal resets, the process is completed. This action may take a while to complete, dependent upon the amount of files converted.
  5. Repeat Steps 2-4 to perform this process on other locations.

Conclusion

You now know how to bulk clone and convert PNG files to WebP in cPanel.

  • webp, png, imagemagick, image, file conversion, ssh
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Video: Create Email Address in cPanel

This video tutorial demonstrates how to create an email address using cPanel Shared Hosting...

Video: Change Primary Language in cPanel

This video tutorial provides Step-by-Step instructions for changing the Primary Language settings...

Video: How to Enable Spam Protection in cPanel

This video tutorial provides Step-by-Step instructions for enabling spam protection in cPanel...

Video: Set Default Email Address in cPanel

This video tutorial provides Step-by-Step instructions for setting the Default Email Address in...

Video: How to Setup Domain Redirects in cPanel

This video tutorial provides Step-by-Step instructions how to setup domain redirects in cPanel...