@texnixe Oh sure, that should be the case. I didn’t think about that, since it didn’t appear to me that @Svnt was talking about the panel, but rather trying to set up own templates and thumbnail would not be created.
But as I said above, the thumbs should be created as soon as you upload an image via the panel, at least that’s how it works on my local installations (Mamp on OSX).
Sorry, I can only disagree.
The thumbs are build not before the page was opened the first time in a browser (tested with kirby-nightly-2.1.0-20150331160945 and with v 2.0.x).
The panel does not know the size of the images, we want to have in the templates or snippets.
And the thumbs, you mentioned, are not build after the upload on the page view in the panel, but if we have opened the overview files view in the panel.
This is another difference!
Sure, but since there are no thumbnails generated for @Svnt at all, @texnixe was pointing out that the panel should already generate some (cause I said that the starterkit/plainkit would not generate any). So that has nothing to do with this code block - that’s just a suggestion how to add thumbnails to the starterkit/plainkit templates for further testing
@Svnt:
Do you view the page view in the panel or the overview files view in the panel?
Page view is like:
and for this view NO thumbs are build!
Overview files view is like:
and here the thumbs “for the panel” are build!
Hint:
It is not always necessary to go to this view. Therefore thumbs must not exist for every page!
The One file view for only ONE file like
builds NO thumb!
@Svnt: Please answer the version question from @texnixe!
Hint: these pictures are from v. 2.0.6.
Supplement:
Thumbs are build from the panel, if the size of the pictures is small enough.
I think the size of the originally picture has to be smaller than 2000 pixel for this at the moment.