Hmm, it looks like the theme settings are rolled back when the package.json contains any error. I have fixed in my file
“max”: {“width”:2560
to
“xxxl”: { “width”: 2560
and now the settings are not reset.
But another problem has arisen: it is impossible to upload an image. When trying to upload a photo for a team member, I see “Something went wrong while loading images”, see screenshot.
I see that no new folders are being created in the /images/size/ on the server for my new image sizes in the package.json
I re-set the 777 permissions for all folders inside /images/ and the photos started uploading. Yes, the w2560 folder is not being created, ok, it is optional.
Folders w1024 and w1920 have appeared, and they contain the webp format inside, which is good.
But the w1440 folder and the w150 folder did not appear at all.
Also, the webp format files in the w100 and w320 folders that existed before did not appear.
(I don’t work for the Ghost Foundation, and I haven’t had my fingers in this particular bit of code too much.)
Ghost doesn’t generate an image of particular size/format until it gets a request for it. So if you haven’t loaded a page in the theme that requests those sizes (or if using srcsets, with a screen size that causes requests for those sizes), then that may be why you don’t see them. Updating package.json does not, as far as I understand it, cause any image generation automatically.
I’ve tryed directly load size=“s” to get 320w. And I have opened my site on smartphone. Unfortunately, nothing has changed. I don’t see the webp file in the w320 folder on the server.
O, yes, directed url on w320 gives me the right size 320px! And the file apears in the folder! But my problem I am trying to resolve is that on authors page is too small for me, and on single author page the image too large for me - Ghost theme uses the same image both to theese pages. I would like to have my own size for page one and page two. I will just send to you by personal message the urls to my site’s pages. Take a look please!
I suspect that your size issue on these pages is going to be resolved by adjusting the css, rather than (or in addition to) changing the size of the image being loaded.