-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use img_url helper to convert image formats automatically #135
Comments
wow cool feature, but the size is not always smaller. For my website images, I use the following formula. I distribute them using nginx bypassing the call to Ghost, I also optimized all the images by losslessly compressing them and making a copy of each image in webp. Thus, if I have webp, then I give it away, if it doesn’t exist, then I give the picture using nginx, and only if it is not in the folder yet, this happens with new pictures, then we send a request to ghost and it creates pictures in its directories and further they will be distributed from there. It was for general education, suddenly it will be useful to someone, the essence of my message is different. I had jpg pictures weighing 43 kilobytes, after converting to webp they became all 141 kilobytes, I don’t know why, I also thought that webp should be smaller |
@uPagge Can you share nginx configuration changes and other settings change you are doing to serve images? |
Sure, here you are
/var/struchkov.dev/ghost/www/images - full path to images |
By the way, I tried this function, but for some reason my images were not converted using Ghost |
Ghost 5.7.0, has added the functionality of the img_url helper, it now can convert image formats automatically. Can use this feature to serve smaller size images with webp extension providing same image quality to enhance performance.
The text was updated successfully, but these errors were encountered: