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

Victor Martin Molina Victor.Martin at ydilo.com
Tue Sep 4 08:39:35 CEST 2012


Thanks, I have this problem with OpenCms 8.0.4.

-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christoph Fröhlich
Sent: martes, 04 de septiembre de 2012 8:37
To: The OpenCms mailing list
Subject: Re: [opencms-dev] can't see uploaded images (png) in image galleries

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
> 
> 
> 

_______________________________________________
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



--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely 
for the use of the individual or entity to whom they are addressed. No confidentiality 
or privilege is waived or lost by any wrong transmission. 
If you have received this message in error, please immediately destroy it and kindly 
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any 
part of this message if you are not the intended recipient. Opinions, conclusions and 
other information in this message that do not relate to the official business of 
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it. 
--------------------------------------------------------------------------------------



More information about the opencms-dev mailing list