Foren

Thumbnails in Image Gallery

Gauri Bansode, geändert vor 12 Jahren.

Thumbnails in Image Gallery

Junior Member Beiträge: 44 Beitrittsdatum: 04.05.11 Neueste Beiträge
Hi,

I am facing one problem regarding Thumbnails in Image Gallery portlet. I am using liferay 6.0.6 version.

I am uploading image file from my application and want to save that image in Image Gallery portlet. For this I store that uploaded image file in my created temporary folder using java API and then I read that Image file (File object) from same folder and add in Image Gallery portlet using IGImageLocalServiceUtil.addImage(.....) method.

That image is going store there but thumbnail is not created. When I click on that ,it shows the image properly.

But I am not understanding why thumbnail is not creating.

If anybody knows the answer ,please help me

Thanks in advance.

Regards,
Gauri
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Thumbnails in Image Gallery

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Once uploaded can you try

Got o Control Panel > Server >Server Administration - click on Execute next to Reindex all search indexes.
Gauri Bansode, geändert vor 12 Jahren.

RE: Thumbnails in Image Gallery

Junior Member Beiträge: 44 Beitrittsdatum: 04.05.11 Neueste Beiträge
Thanks Nagendra for your reply.

I solved my problem. Actually there was some problem while sending file contentType to addImage(......) method. emoticon Now its done. My uploaded Image file is getting store in Image Gallry portlet and thumbnail also created.

Regards,
Gauri
thumbnail
Nagendra Kumar Busam, geändert vor 12 Jahren.

RE: Thumbnails in Image Gallery

Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Glad you resolved by yourself emoticon.

If you can post some code snippet that will be gr8
> Working code for adding images, highlight with different color the ones you missed earlier