I want to test the 'pro' features of ImageGen on my localhost, but the overlay function doesn't work. When I try to get the image in the browser with the following url, the overlay is not visible:
Do check what you've got set in the /config/imagegen.config in the class="default" section. If you have an <ImageBaseDir> that will have an effect.
Also, remember that the overlay image is placed at its native size on top of the resized image= image. So if your overlay is larger than the resized image and the overlay is something small in the bottom-right corner (or even in the middle if the overlay image is much larger than the resulting image) the part of the watermark overlay you expect to see might be positioned off the edge of the resized image and thus not visible. The docs talk more about this.
Testing with a small overlay image can be helpful as you get things sorted out.
Sorry for my late reaction. I've checked your suggestions, but the things you mentioned were not the case. The overlay is smaller than the image and <ImageBaseDir> isn't placed in class="default".
- The first url returns the watermark like I've created. - The second url returns the image without watermark/overlay. - The third url returns the watermark/overlay without the image from media.
So I hope that says something more about this issue.
That's very odd. Any chance you could contact me through my website and we can work on this via email, sending a few files back and forth until we figure this out?
I'd love to have your two sample images to test here.
The solution is simple... use the correct parameter name. Sorry I didn't spot it, Niels, and just copy-n-paste'd your samples without looking closely and thus continued the mistake and wasted your time.
The correct parameter is 'OverlayImage' not 'Overlay' as shown below. This will work correctly:
FWIW, I did find a typo in the ImageGen Reference Manual on page 8 where an example shows &overlay= which is incorrect; thankfully everywhere else in the reference manual and the quick start guide the full 'OverlayImage' is used when discussing the parameter and how to use it. So thanks for helping me find the typo as well. That's probably where you got the errant parameter syntax from in the first place. Again, my bad.
Yes, it's a licensing issue. You need ImageGen Professional, which is not active on the 'mymachinename' domain. If you can run as 'localhost' (with or without port numbers) or set up a hosts file to map 'mymachinename.local' to your site it will work because the Pro features are enabled for testing on all *.local and localhost domains.
Overlay doesn't work on localhost
I want to test the 'pro' features of ImageGen on my localhost, but the overlay function doesn't work. When I try to get the image in the browser with the following url, the overlay is not visible:
I've created the image in the mediafolder and the watermark.png is placed in /images/. It's on an umbraco version 6.0.2 and ImageGen 2.5.7
Can somebody help me on this one?
Hi, Niels,
Just tested it locally and it worked just fine.
Do check what you've got set in the /config/imagegen.config in the class="default" section. If you have an <ImageBaseDir> that will have an effect.
Also, remember that the overlay image is placed at its native size on top of the resized image= image. So if your overlay is larger than the resized image and the overlay is something small in the bottom-right corner (or even in the middle if the overlay image is much larger than the resulting image) the part of the watermark overlay you expect to see might be positioned off the edge of the resized image and thus not visible. The docs talk more about this.
Testing with a small overlay image can be helpful as you get things sorted out.
cheers,
doug.
Hi Douglas,
Sorry for my late reaction. I've checked your suggestions, but the things you mentioned were not the case. The overlay is smaller than the image and <ImageBaseDir> isn't placed in class="default".
Is there anything else I can check?
Thanks,
Niels
Hi, Niels,
Thanks. That removes some potential issues.
Can you try these and let me know what does(n't) work?
http://localhost:47404/ImageGen.ashx?image=/media/1001/example.jpg&overlay=/images/watermark.png&valign=top
cheers,
doug.
Doug,
- The first url returns the watermark like I've created.
- The second url returns the image without watermark/overlay.
- The third url returns the watermark/overlay without the image from media.
So I hope that says something more about this issue.
Hi, Niels,
That's very odd. Any chance you could contact me through my website and we can work on this via email, sending a few files back and forth until we figure this out?
I'd love to have your two sample images to test here.
You can contact me at http://www.percipientstudios.com/about/contact.aspx or 'doug' at my domain.
Thanks!
doug.
The solution is simple... use the correct parameter name. Sorry I didn't spot it, Niels, and just copy-n-paste'd your samples without looking closely and thus continued the mistake and wasted your time.
The correct parameter is 'OverlayImage' not 'Overlay' as shown below. This will work correctly:
doug.
Thanks again for your help Douglas! I've used the line from the Reference Manual, but now it's perfect.
I have a similar issue. The overlayimage work great on my local machine but then I want to test it on my mac it does not work
http://mymachinename:1303/ImageGen.ashx..
I guess this is due to licensing but I like to see what the images look like on the iphone simulator
Hi, Raj,
Yes, it's a licensing issue. You need ImageGen Professional, which is not active on the 'mymachinename' domain. If you can run as 'localhost' (with or without port numbers) or set up a hosts file to map 'mymachinename.local' to your site it will work because the Pro features are enabled for testing on all *.local and localhost domains.
cheers, doug.
is working on a reply...