There are two solutions to this situation. The easiest is to remove the
domain from the &image= parameter since the image is in the same
domain as that running ImageGen. This is the typical use. In your
example, the url would be:
The second solution requires that you purchase an ImageGen
Professional registration key for your domain and add the remote
image's domain to the whitelist in the imagegen.config file. This is an
undocumented Professional feature that will appear in ImageGen v3 but
which is already in the codebase of the version you're running. If you
store your images on a remote server you'll need ImageGen Professional
for the domain running ImageGen itself.
But as I say, you can simply omit the domain in the &image= parameter if the images are on the same site.
I've got a situation where the image url's are generated and I can't remove http://localhost at the beginning of the of the image url. I've added the url to the RemoteDomainWhiteList, but it still doesn't work. Here is the url (removed http:// at the beginning because otherwise this forum would shorten the url):
I'm using ImageGen Professional. Here is part of the config file:
<Registration>
<!-- ImageGen Professional is always available on localhost and *.local domains -->
<Key domain="license.com">55FD8FD97A199AB3082BC7DC11AE5F743B092C55</Key>
</Registration>
<HideDomains>false</HideDomains>
<RemoteDomainWhiteList>
<Domain>www.sample.com</Domain>
<Domain>http://localhost</Domain>;
<Domain>http://localhost/</Domain>;
<Domain>localhost</Domain>
<Domain>localhost/</Domain>
</RemoteDomainWhiteList>
I added localhost 4 times to make sure it would work, but it still doesn't. Any idea what could be wrong? Already restarted the website, but that also didn't work.
Images must be local to the webserver or in the whitelisted domain list.
Hi,
I use ImageGen.dll in my WebSite(not umbraco).
Whe i write
http://localhost/MySite/ImageGen.ashx?image=http://localhost/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132
Imagegen gives the following error:
Images must be local to the webserver or in the whitelisted domain list
Does anyone know what I need to do to the configuration to put the remote domain in a whitelist? Presuambly this is in the imagegen.config?
Any help would be appreciated.
[]The original post had a request to http://localhost/MySite/ImageGen.ashx?image=http://localhost/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132 ]]
There are two solutions to this situation. The easiest is to remove the domain from the &image= parameter since the image is in the same domain as that running ImageGen. This is the typical use. In your example, the url would be:
http://localhost/MySite/ImageGen.ashx?image=/MySite/images/temp/44-89-ArticleImage1.jpeg&width=132&height=132
The second solution requires that you purchase an ImageGen Professional registration key for your domain and add the remote image's domain to the whitelist in the imagegen.config file. This is an undocumented Professional feature that will appear in ImageGen v3 but which is already in the codebase of the version you're running. If you store your images on a remote server you'll need ImageGen Professional for the domain running ImageGen itself.
But as I say, you can simply omit the domain in the &image= parameter if the images are on the same site.
cheers,
doug.
Error parsing XSLT file: \xslt\forum-commentsList.xslt
How ironic!!!
Hi Doug,
I've got a situation where the image url's are generated and I can't remove http://localhost at the beginning of the of the image url. I've added the url to the RemoteDomainWhiteList, but it still doesn't work. Here is the url (removed http:// at the beginning because otherwise this forum would shorten the url):
localhost/ImageGen.ashx?image=http://localhost/images/thumbs/0000259_200.jpeg&width=44&height=44&crop=resize
I'm using ImageGen Professional. Here is part of the config file:
I added localhost 4 times to make sure it would work, but it still doesn't. Any idea what could be wrong? Already restarted the website, but that also didn't work.
Jeroen
My ImageGen.config was not in the /config folder so I needed to update the web.config location. Now it works :-).
Jeroen
is working on a reply...