[opencms-dev] can't see uploaded images (png) in image galleries

Christoph Fröhlich cfauto at folge2.de
Tue Sep 4 08:37:23 CEST 2012


I'm seeing this from time to time as well. 
What sometimes helps is to change the sort order in the gallery view. For example from "title ascending" to "date descending".

Another trace could by memory. OpenCms does not  display an image when it is  too big and cannot be scaled to a thumbnail size. "Too big" in this context is not really understandable for me. It happens that scaling of an image of 5MB leads to an OutOfMemory Error in heap space, even if memory reports suggest that there are 80MB free memory. Maybe its a problem of coninuous memory? I don't know.

If your situation boils down to a memory problem,you can try to decrease the max blur size. While scaling the image, a light blur is put on it, which makes the result looks less "edgy". Bluring seems to be very memory intensive, and therefor you can set the "max blur size" to a lower level which prevent larger images from beeing blurred.

You do so by adding a param to the definition of CmsLoader in opencm-vfs.xml:
--------------------------------------------------

<resourceloaders>
	... 
	<loader class="org.opencms.loader.CmsImageLoader">
		.....
		<param name="image.scaling.maxblursize">2250000</param>
	</loader>
	....

--------------------------------------------------

One more thing: For it is sometime tricky to find the OutOfMemory stacktrace. Sometimes it is written to opencms.log, sometimes to one of the various tomcat.logs

It would be good to know which version of OpenCms you are using. I'm referring to OpenCms 8.0.3.The change log of 8.0.4. mentions some improvements with image galleries, so maybe it could be worth to have a look at it.

Hope that helps
Regards
Christoph


Am 03.09.2012 um 23:12 schrieb Tom Wolf:

> Hi,
> I'm uploading images to image gallery folders and they don't appear in the image gallery selection.
> 
> Any ideas?
> 
> Thanks
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 




More information about the opencms-dev mailing list