4 ms·
a great idea Jason! It is great for dynamic images, but I would think 99% of use cases is for static image. I would appreciate feature which does the magic and
by woid 17y ago
a great idea Jason!
It is great for dynamic images, but I would think 99% of use cases is for static image. I would appreciate feature which does the magic and enables me to render static piece of HTML+CSS for direct replacement.
This way I would be able to bake static version during development and publish it without dependency on canvas or other tricky methods.
- mnemonik 17y agoHere is a similar tool that outputs static html/css: http://www.csstextwrap.com/ http://www.csstextwrap.com/ EDIT: It seems that this plugin falls back on the normal css float property, so the only downsides I see are that JS is required and there is some small bandwidth overhead of sending the script. Not very big downsides at all.
- armandososa 17y agoThis is completely awesome. I'd like somekind of 'cache' too, so all the calculation only executes once.
- pierrefar 17y agoWouldn't this "pre-calculated" version work only for a certain combination of text size, line-height, element widths, and zoom settings? A pre-calculated version is not much different (conceptually) from just creating a static image containing the image and the text.
- Tichy 17y agoHaven't read all the technical details, but if the idea is to "sandbag" the image, text of all sizes and fonts should be able to flow around it properly? All it does is to create shape out of divs that is a closer match to the visible pixels than a rectangle.