- I added the config\ImageGen.config file to my site with the following contents.
<ImageGenConfiguration> <Registration> <!-- ImageGen Professional is always available on localhost and *.local domains --> <Key domain="example.com">436DA8888A3BBC98662B23C6D1B635543E762854</Key> <Key domain="sample.com">55FD8FD97A199AB3082BC7DC11AE5F743B092C55</Key> </Registration> <HideDomains>true</HideDomains> <RemoteDomainWhiteList> <Domain>www.example.com</Domain> </RemoteDomainWhiteList>
For the professional features to be enabled (which includes the class feature) you need either be running on localhost, a *.local domain, or have purchased an ImageGen Professional domain key. Since you've not got any of those things, your request from local.mysite.net/.../myimage.gif&class=articleListImage will not have the Professional features enabled and thus the class=articleListImage will be ignored and the original image will be returned.
Imagegen doesn't resize image
Hi,
Imagegen (2.5) doesn't resize images on my Umbraco (4.7) site.
When I go to the image URL imagegen shows me the original image and not the image defined in the "articleListImage" class.
http://local.mysite.net/ImageGen.ashx?image=/media/171/myimage.gif&class=articleListImage
- I added the imagegen 2.5 dll to the bin folder of my Umbraco 4.7 site.
- I addedthe following to the web.config.
<configuration>
<configSections>
<section name="ImageGenConfiguration" type="ImageGen.ImageGenConfigurationHandler,ImageGen" />
</configSections>
<ImageGenConfiguration configSource="config\ImageGen.config" />
</configuration>
- I added the config\ImageGen.config file to my site with the following contents.
<ImageGenConfiguration>
<Registration>
<!-- ImageGen Professional is always available on localhost and *.local domains -->
<Key domain="example.com">436DA8888A3BBC98662B23C6D1B635543E762854</Key>
<Key domain="sample.com">55FD8FD97A199AB3082BC7DC11AE5F743B092C55</Key>
</Registration>
<HideDomains>true</HideDomains>
<RemoteDomainWhiteList>
<Domain>www.example.com</Domain>
</RemoteDomainWhiteList>
<Class Name="articleListImage" OverridesQueryString="true">
<ImageBaseDir>/media</ImageBaseDir>
<AllowUpsizing>false</AllowUpsizing>
<Height>70</Height>
<Width>100</Width>
<pad>true</pad>
<constrain>true</constrain>
<bgcolor>white</bgcolor>
<CachingTimeSpan>14800</CachingTimeSpan>
</Class>
</ImageGenConfiguration>
- And I restarted the server.
What am I missing?
For the professional features to be enabled (which includes the class feature) you need either be running on localhost, a *.local domain, or have purchased an ImageGen Professional domain key. Since you've not got any of those things, your request from local.mysite.net/.../myimage.gif&class=articleListImage will not have the Professional features enabled and thus the class=articleListImage will be ignored and the original image will be returned.
cheers,
doug.
Ah, I see. Specifying the parameters in the query string did the trick.
ImageGen.ashx?image=/media/171/uitgaven.gif&width=100&height=70&constrain=True&bgcolor=white
is working on a reply...