To uninstall Magento 2 Image Optimization Extension by Magefan, please follow the Uninstalling Magento 2 WebP Images Extension and Uninstalling Magefan Image Lazy Load Extension.