PHP Developers Network
http://forums.devnetwork.net/

creating thumbnails in bolt .
http://forums.devnetwork.net/viewtopic.php?f=72&t=143122
Page 1 of 1

Author:  gautamz07 [ Tue Nov 08, 2016 1:51 am ]
Post subject:  creating thumbnails in bolt .

I currently have the following lines of code in my index.twig file to output the image of a post:

Syntax: [ Download ] [ Hide ]
<img src="{{ record.image|image }}" alt="">


Now i went through the bolt documentation and came to know that there is the following function in bolt:

Syntax: [ Download ] [ Hide ]
thumbnail(filename, w, h)




So now i tried to use the function in the following way:

Syntax: [ Download ] [ Hide ]
<img src="{{ thumbnail(record.image|image, 200, 200)  }}" alt="">


But i get a broken link instead. why is this happening ?

Author:  Celauran [ Tue Nov 08, 2016 8:18 am ]
Post subject:  Re: creating thumbnails in bolt .

What error messages are you getting? Are you saving thumbnails? Is the directory writable?

Author:  gautamz07 [ Tue Nov 08, 2016 1:43 pm ]
Post subject:  Re: creating thumbnails in bolt .


Author:  Celauran [ Tue Nov 08, 2016 1:52 pm ]
Post subject:  Re: creating thumbnails in bolt .


Author:  gautamz07 [ Tue Nov 08, 2016 2:27 pm ]
Post subject:  Re: creating thumbnails in bolt .

@celauran ! , Thanks for the inputs , i'll look into all you've said and reply back here :) Thanks

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/