I don't know about you, but at least for me, I rarely create image thumbnails for the different content types in the solutions I am working on. If you are like me, then this package will hopefully give your editors a somewhat more pleasant user experience when creating content.
The package basically consists of an override to the built in "ImageUrlAttribute" that is used to specify preview images for the different contenttypes in your Episerver project.
The only difference is that with this attribute the images are generated using a configured background color, foreground color and a reference to a FontAwesome icon.
Using the built in ImageUrlAttribute, you specify the images to be presented like this:
After installing this package, you can specify it like this instead.
or with overriddes for specifying different colors and size
The defaults if nothing else is specified is of course the Geta colors as seen in the screenshot.
The images that gets generated is cached in [appDataPath]\thumb_cache\
Using the following configuration you can change the default colors:
<appSettings> <add key="FontThumbnail.BackgroundColor" value="#000000" /> <add key="FontThumbnail.ForegroundColor" value="#ffffff" /> <add key="FontThumbnail.FontSize" value="40" /> </appSettings>
Install NuGet package (use EPiServer Nuget)
Should work for Episerver 9.x and 10.x
Head over to the project site for more details and the source code.
Get back if you experience any issues etc.