Hi Dw,
For large solutions with tons of images it would be nice to have a better handling af corrupt images than displaying an error like this:
System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at Dynamicweb.Image.GetDimensionsFromFile(String filePath) at Dynamicweb.Image.GetDimensions(String filePath) at Dynamicweb.Image.WriteImage(String file, String altText, String settings, Int32 forceImageWidth, Int32 forceImageHeight) at Dynamicweb.Image.WriteImage(String file, String altText, String settings, Int32 forceImageWidth) at Dynamicweb.Gui.Media(String& strMedia, String& URL, String Target, String& Mouseover, String& Caption, Boolean& PutInTable, String& strSettings, String& strPlacement, String ForceImageWidth, String ForceImageHeight, Boolean AddFilesToUrl, Boolean swfNoScript) at Dynamicweb.Gui.Media(String& strMedia, String& URL, String Target, String& Mouseover, String& Caption, Boolean& PutInTable, String& strSettings, String& strPlacement, String ForceImageWidth, String ForceImageHeight, Boolean AddFilesToUrl) at Dynamicweb.eCommerce.Frontend.Renderer.RenderImagePatterns(IList`1 imagePatterns, Product Product, Template template, String tagPrefix) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProduct(Product Product, Boolean ExtendedProperties, Template Template, Int32 loopCounter, Boolean renderRelated, String productURL, Int32 quantity, Int32 wishListID, Boolean renderPublicList) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProducts(ProductCollection Products, Template ParentTemplate, String LoopName, Int32 LoopCounter, Boolean renderRelatedProducts, Boolean renderRelatedLists) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProducts(ProductCollection Products, Template ParentTemplate) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProducts(ProductCollection Products) at Dynamicweb.eCommerce.Frontend.Frontend.ListProducts(ProductCollection products, String groupsIdent, Boolean hasBeenSorted) at Dynamicweb.eCommerce.Frontend.Frontend.EcomRender() at Dynamicweb.eCommerce.Frontend.Frontend.GetContent() at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)
Will it will possible for you to handle this exception or at least specify the image causing the problem?
Best regards, Anders