Using images in Ghost just got a whole lot better with instant image optimisation, responsive image galleries and API improvements!
This is a companion discussion topic for the original entry at https://blog.ghost.org/image-galleries/
Using images in Ghost just got a whole lot better with instant image optimisation, responsive image galleries and API improvements!
Sometime we need thumbnail size picture for the post thumnail in sidebar, footer etc. So it that possible with new update? Can you get multiple size picture url for our theme ?
No. We have plans for adding more features like this soon, but for now we have only added basic optimisation.
One step at a time
Thank you very much for this one This was definitely top of my list
Will this work on existing (published) posts, or does it only apply to new posts?
Thank you again
Jamie
How does this affect external image storage tools such as S3 or Cloudinary? Looks like a cool feature, either way—this was something that previously required something like imgix to pull off by changing URL parameters.
Is it possible to turn this off before image upload at this stage? It seems to be either blanket on/off.
You can turn off Image Optimization in your config file - see the default config file for guidance
You can, yeah. Doesn’t help me much on Ghost(Pro) at this stage.
For Ghost (Pro) related issues, your best bet is to email them (support@ghost.org)
What happens with those who use Amazon S3 or some other service where the images are saved separately.
As a end-user looking at a gallery, it would be nice to be able to clic on a given picture so that it opens “full size”. Any futur feature regarding this?
Thank you!
This can already be implemented in the theme using JS - doesn’t need anything from Ghost
Everything works fine and is compatible with external storage adapters
Got it. I understand you have no plan to introduce this behavior within Casper.
Cheers!
Could you provide an example or a source to watch? Some of us aren’t programmers.
Thx in advance!
As an example you could take a look at one of our themes: Gonjiam
Let me exmplain a little how I did it.
I added fluidbox to my theme.
Then added a little piece of code to make it work:
// Make all images from gallery ready to be zoomed
$('.kg-gallery-image img').each(function(index, el) {
$( "<a href='" + $(this).attr('src') + "' class='zoom'></a>" ).insertAfter( $(this) );
$(this).appendTo($(this).next("a"));
});
// Initialize Fluidbox
$('.zoom').fluidbox();
That’s a super nice example <3
Thx! still don’t know where to put that piece of code, but I gonna read the links and documents.
I just upgraded recently to 2.x and am using Amazon S3, but image optimization does not seem to work automatically. Is there some different setup that I’d have to go through? At what point do the images get optimized? I’m using ghost-storage-adapter-s3.
Are Image Optimisation still working in 2022? I ask because the file size of our images are still quite big after uploading them (same file size after screenshot) and are slowing down our page speeds and SEO
If you’re able to save file image files out as .webp format this further reduce heavily. For web I’m saving out image files and charts to 2048px on the long side the last week and the page speed is good.