P
P
Pavel2021-05-24 09:08:36
JPEG
Pavel, 2021-05-24 09:08:36

Wordpress + Woocommerce bulk convert uploaded png to jpg, how to implement?

There is a store, about 300,000 png images have already been uploaded.
I'm looking for a way to convert images to jpg that will correctly overwrite them in the database in the goods.

The EWWW Image Optimizer plugin is not suitable for such volumes, it is unrealistic to run it through the admin panel even breaking it down by 1000. It has the ability through the wp-cli console, but only optimization without conversion goes there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2021-05-24
@kawabanga

1) I would use command utilities. For example, mogrify is mentioned here.
https://superuser.com/questions/71028/batch-conver...
2) if there are subdirectories, then use the sh script with a pass through the files.
3) Rename the pictures in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question