Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thumbnail generator #120

Closed
Remo opened this issue Apr 16, 2014 · 5 comments
Closed

thumbnail generator #120

Remo opened this issue Apr 16, 2014 · 5 comments

Comments

@Remo
Copy link

Remo commented Apr 16, 2014

I was looking for a way to embed pictures with a certain size. I've got a large picture shown in the detail, but would like to use the same source for a thumbnail.

Maybe I've missed something, but I haven't seen an official way to do this.

Any ideas? Suggestions on how to implement this?

@mavimo
Copy link
Contributor

mavimo commented Apr 25, 2014

@Remo I'm using a custom bsh script to generate some images from original and save on specific folder. Then you can reference the converted images. See imgconv.

@Remo
Copy link
Author

Remo commented Apr 26, 2014

thanks @mavimo but creating a thumbnail isn't the problem, I'm looking for a more embedded way to do this. I'll see if I can build a twig extension where I can specify the thumbnail size right within the template, that's where I actually work and where my colleagues will certainly find the thumbnail definition. If I don't have to add any dependencies, that would be nice too.

@simensen
Copy link
Member

simensen commented May 8, 2014

@Remo Have you made progress on this? I think that a Twig extension definitely sounds like the right direction.

@Remo
Copy link
Author

Remo commented May 8, 2014

@simensen No, unfortunately not. I just need that for a personal fun project and as often, customer projects are piling up.. I doubt I'll be able to start on this task anytime soon

beryllium added a commit to beryllium/sculpin that referenced this issue Mar 1, 2015
…automatically generate thumbnails. Addresses issue sculpin#120.
@beryllium
Copy link
Member

I've released a Sculpin extension called "icelus" that enables thumbnail generation in sculpin via a twig extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants