Xử lý ảnh, image trong wordpress full phần 1(ok)
1. Disable image scaling in WordPress (a version 5.3 update)
Kết quả
Câu hỏi đặt ra có cách nào thay đổi bằng kích thước ảnh gốc không để tôi xóa kích thước ảnh 150x150 đi cho đỡ tốn bộ nhớ :)
Muốn nghiên cứu rõ hơn thì chúng ta tìm hiểu ở file
C:\xampp\htdocs\wordpress3\wp-includes\media.php
C:\xampp\htdocs\wordpress3\wp-admin\includes\image.php
2. Muốn loại bỏ kích thước ['medium', 'medium_large','thumbnail','large', '1536x1536', '2048x2048'] trong wordpress
Hướng dẫn cách lấy tất cả các kích thước ảnh đang sử dụng trên website :(
3. Xử lý ảnh kết hợp với lệnh cmd hỗ trợ của wordpress để loại bỏ nhưng kích thước không mong muốn :))
4. My default media setting in WordPress blog is 150x150, 300x300, 1024x1024 respectively for thumbnail, medium, large images. Now I am designing a theme that need different size thumbnail images to show in theme. For this, I go to the media setting again and changed the setting with my news sizes like 72x72, 250x250, 400x400 respectively for thumbnail, medium, large images.
But now to resize my old uploaded images, I used Regenerate Thumbnails WordPress plugin and that generated my new media setting images size easily. So this solved my main problem.
5. Cách sử dụng remove_image_size kết hợp với init cũng có tác dụng như trên :)
Kết hơp với cầu lệnh C:\xampp\htdocs\wordpress3>wp media regenerate --yes
PreviousHow to Set, Get, and Delete WordPress Cookies (like a Pro) (ok)NextCách tạo file csv để import sản phẩm woocommerce (ok)
Last updated