November Happy Hour will be moved to Thursday December 5th.

Image Gallery Thumbnails Physical Path

Vote:
 
Hi!

Configuration of ImageGallery contains following settings:

<imageGallery
imageAbsoluteFilePath="C:\EPiServer\VPP\EPiServerCommunity\Modules\ImageGallery\Originals"
thumbnailVirtualFilePath="/Thumbnails"

Is it possible to manage physical path of thumbnails? Now epi create folder "Thumbnails" in web site root.

 

#53911
Sep 26, 2011 14:08
Vote:
 

I am not very good with Virtual paths, but can't you just point the virtual Path to a physical location like it's done for "/Global" in episerver.config?

<add showInFileManager="false"virtualName="Thumbnails" virtualPath="/Thumbnails/" bypassAccessCheck="false" name="SiteThumbnails" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\EPiServer\VPP\MyRelateSite\Thumbnails"/>

I've not tried this but maybe it's possible?

Anyway, My config look like this if it is any help;

<imageGallery imageAbsoluteFilePath="C:\EPiServer\VPP\MyRelateSite\EPiServerCommunity\Modules\ImageGallery\Originals" thumbnailVirtualFilePath="~/EPiServerCommunity/Modules/ImageGallery/Thumbnails" imgExtension=".jpg" imgMaxWidth="640" imgMaxHeight="640" saveOriginal="true" maxUserImageQuota="0"imgQuality="100"></imageGallery>

<location path="EPiServerCommunity/Modules/ImageGallery/Thumbnails">
<
system.web>
<authorization>
<
allow users="*" />
</authorization>
</system.web>
</location>


 

#53991
Sep 28, 2011 14:10
Vote:
 
Thanks for answer, Jens

I use the same configuration.

I tried to add virtual path provider to EPiServer.config, but thumbnails still stores to web site root.
Not sure, but it looks like in EPi source used Server.MapPath which ignores path providing.

 

#54010
Sep 29, 2011 9:35
Vote:
 

Hi Artem,

I wonder if the following article might help:

http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-Community/EPiServer-Community-32/The-Cache-Replication-System/

A key point in the article is setting up a 'Thumbnails' virtual directory and pointing to the correct share.

I hope this helps,

Mark

 

#54367
Oct 12, 2011 11:06
Vote:
 

Thanks a lot, Mark

Seems this solution should solve my problem

#54368
Oct 12, 2011 11:12
Vote:
 

This seems like a pretty old post, but anyway we faced the same issue that ImageGallery thumbnail image virtual path is ignored by the ImageGalleryHandler class. Therefore found and excellent article on this topic and how to make thumbs to save to VPP folder instead under www root in folder named as in "virtual folder" attribute.

 

http://blog.tompipe.co.uk/post/EPiServer-Community-and-image-thumbnailing-woes.aspx

#57004
Feb 21, 2012 14:04
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.