Code: Select all
<img src="{{ record.image|image }}" alt="">
Code: Select all
thumbnail(filename, w, h)
So now i tried to use the function in the following way:
Code: Select all
<img src="{{ thumbnail(record.image|image, 200, 200) }}" alt="">
Moderator: General Moderators
Code: Select all
<img src="{{ record.image|image }}" alt="">
Code: Select all
thumbnail(filename, w, h)
Code: Select all
<img src="{{ thumbnail(record.image|image, 200, 200) }}" alt="">
@celauran i believe the thumbnails get saved to the thumbs/ folder , i don't see an option in the frontend to save thumbnails specifically , also BTW , just checked and the thumbs/ folder is empty , so no wonder i am getting broken links. Hmmmmm ... So when exacly can i use the following function ?Are you saving thumbnails?
Code: Select all
{{ thumbnail(record.image|image, 200, 200) }}
Like most things in Bolt, it's set in your config.yml file. Also, make sure your thumbs directory exists and your web server has write privileges.gautamz07 wrote:i don't see an option in the frontend to save thumbnails specifically
What is record? Does it have an image field? Do the records in question have images? Were they properly uploaded? Are they available full size? Any reason you're using both the thumbnail tag and the image filter?gautamz07 wrote:Code: Select all
{{ thumbnail(record.image|image, 200, 200) }}