Hello! Namaste!

Hello! I am a WordPress Developer living near Gujarat, India. When I am not writing code, you can find me exploring new places & nature or spending time with friend & family.

Filter intermediate image

In WordPress, While migration site, Media will large chunks to migrate. For making that seamless we should filter out all intermediate image sizes.

Below command will filter intermediate image sizes for upload-dir and create zip file

find uploads-dir -type f -print | egrep -v '\-[0-9]+x[0-9]+\.(jpg|png|jpeg|gif)$' | tar cvfz media-files.tar.gz -T -

Design a site like this with WordPress.com
Get started