I have a strange problem with the out of memory error. I've been checking the forums and read that it has todo with app pool size and the size of the image being resized. On this site (working progress) I'm using Imagegen to resize a 128 x 128 image to 90 x 90 and I'm still getting an out of memory error. How come? The funny thing is that the exact same image works a number of times but not in every instance.
My app pool is unlimited and if it should run out it swaps to disk. Clearly the issue can't be memory related, can it?
Do all images have this problem or only a few images? If a few, is there anything unique about them?
Does the problem appear when displaying a lot of resized images on a page (a gallery perhaps) or are you only showing a few resized images at a time? Is the busy or under load when the problem appears?
Do all images have this problem or only a few images? If a few, is there anything unique about them?
Only a few. In some instances I understand why I get the problem since there very large.
Does the problem appear when displaying a lot of resized images on a page (a gallery perhaps) or are you only showing a few resized images at a time? Is the busy or under load when the problem appears?
In the case above there are many (below 20) on the same image. But on some pages the problem occurs with a smaller amount of images.
I'll try to delete the cache folders to see if this helps.
The source image is 5792 x 5792 pixels, which is a 34 megapixel image and will require a LOT of memory to expand to full size and color depth and then resize it. http://web.forret.com/tools/megapixel.asp?width=5792&height=5792 gives details. At least for this image, I don't doubt that you have indeed run out of memory.
Out of memory on very small image
Hi
I have a strange problem with the out of memory error. I've been checking the forums and read that it has todo with app pool size and the size of the image being resized. On this site (working progress) I'm using Imagegen to resize a 128 x 128 image to 90 x 90 and I'm still getting an out of memory error. How come? The funny thing is that the exact same image works a number of times but not in every instance.
My app pool is unlimited and if it should run out it swaps to disk. Clearly the issue can't be memory related, can it?
Best regards / Niklas
Hi, Niklas,
The error means just what it says, it is a response from .net that I pass through to give an indication why the image didn't appear.
So, a couple questions...
http://localhost/imagegen.ashx?version
http://localhost/imagegen.ashx?image=my128.jpg&width=90&nocache=true
cheers,
doug.
Hi Doug
I'm using version 2.5.1.23224.
I forgot to post the link http://www.dittnyabadrum.se/badrumsinredning/duschar/duschhorna-rund/linc-diamond-bojd-klarglas/
http://www.dittnyabadrum.se/umbraco/ImageGen.ashx?image=/media/108360/linc_diamond.jpg&width=90&compression=90&constrain=true
Do all images have this problem or only a few images? If a few, is there anything unique about them?
Only a few. In some instances I understand why I get the problem since there very large.
Does the problem appear when displaying a lot of resized images on a page (a gallery perhaps) or are you only showing a few resized images at a time? Is the busy or under load when the problem appears?
In the case above there are many (below 20) on the same image. But on some pages the problem occurs with a smaller amount of images.
I'll try to delete the cache folders to see if this helps.
Thanks / Niklas
Thanks for the links!
I notice that http://www.dittnyabadrum.se/media/108360/linc_diamond.jpg is very large, not the 128x128 you originally mentioned.
The source image is 5792 x 5792 pixels, which is a 34 megapixel image and will require a LOT of memory to expand to full size and color depth and then resize it. http://web.forret.com/tools/megapixel.asp?width=5792&height=5792 gives details. At least for this image, I don't doubt that you have indeed run out of memory.
cheers,
doug.
Thanks Doug
My bad. I can see that the first image is way to big. Thought it was the same as the others.
Cheers
Niklas
I'm getting this error on a small image - 630 KB:
http://our.umbraco.org/projects/website-utilities/imagegen/imagegen-bugs/19246-Out-of-memory-on-very-small-image
http://perfectlyclear.dedicated.dev.plan9.co.uk/ImageGen.ashx?image=/umbraco/plugins/umbracoContour/files/1a51ffe5-7c6a-46fa-a0d8-2d366a8f8b05/me.jpg
Any ideas?
Hi, Dan,
Please don't cross-post. I've answered your other post.
cheers,
doug.
is working on a reply...