Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I cannot seem to get ImageProcessor.AzureBlobCache working locally with Azure Storage Emulator or Azurite.
The images load, but without image processor changes and not from the blobcache (no redirect is taking place).
Any ideas?
cache.config
<?xml version="1.0" encoding="utf-8"?> <caching currentCache="AzureBlobCache"> <caches> <!--<cache name="DiskCache" type="ImageProcessor.Web.Caching.DiskCache, ImageProcessor.Web" maxDays="365" browserMaxDays="7" trimCache="false"> <settings> <setting key="VirtualCachePath" value="~/app_data/cache"/> </settings> </cache>--> <cache name="AzureBlobCache" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureBlobCache, ImageProcessor.Web.Plugins.AzureBlobCache" maxDays="365"> <settings> <setting key="CachedStorageAccount" value="UseDevelopmentStorage=true" /> <setting key="CachedBlobContainer" value="devcache" /> <setting key="UseCachedContainerInUrl" value="false" /> <setting key="StreamCachedImage" value="false" /> <setting key="SourceStorageAccount" value="UseDevelopmentStorage=true" /> <setting key="SourceBlobContainer" value="dev" /> </settings> </cache> </caches> </caching>
security.config
<?xml version="1.0" encoding="utf-8"?> <security> <services> <service name="LocalFileImageService" type="ImageProcessor.Web.Services.LocalFileImageService, ImageProcessor.Web" /> <!--Disable the LocalFileImageService and enable this one when using virtual paths. --> <!--<service name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web"> <settings> <setting key="Container" value=""/> <setting key="MaxBytes" value="8194304"/> <setting key="Timeout" value="30000"/> <setting key="Host" value="http://yourhost.com/"/> </settings> </service>--> <service prefix="media/" name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web"> <settings> <setting key="MaxBytes" value="8194304"/> <setting key="Timeout" value="30000"/> <setting key="Host" value="http://127.0.0.1:10000"/> <setting key="Container" value="dev"/> </settings> </service> <service prefix="remote.axd" name="RemoteImageService" type="ImageProcessor.Web.Services.RemoteImageService, ImageProcessor.Web"> <settings> <setting key="MaxBytes" value="4194304" /> <setting key="Timeout" value="3000" /> <setting key="Protocol" value="http" /> </settings> <whitelist> </whitelist> </service> </services> </security>
filesystemproviders.config
<?xml version="1.0"?> <FileSystemProviders> <!-- Media --> <Provider alias="media" type="Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure"> <Parameters> <add key="containerName" value="dev"/> <add key="rootUrl" value="http://127.0.0.1:10000/devstoreaccount1/"/> <add key="connectionString" value="UseDevelopmentStorage=true"/> <add key="maxDays" value="365"/> <add key="useDefaultRoute" value="true"/> <add key="usePrivateContainer" value="false"/> </Parameters> </Provider> </FileSystemProviders>
I am using UmbracoFileSystemProviders.Azure which is working fine.
ImageProcessor - 2.6.1.19
ImageProcessor.Web - 4.9.2.19
ImageProcessor.Web.Config - 2.4.1.19
ImageProcessor.Web.Plugins.AzureBlobCache - 1.4.2.19
UmbracoFileSystemProviders.Azure - 1.0.3
Seems to be working now. I upgraded all ImageProcessor dependancies to the latest versions and changed the security config to use the AzureImageService. Not sure why I couldn't get it working with CloudImageService or LocalFileImageService.
<?xml version="1.0" encoding="utf-8"?> <security> <services> <service name="LocalFileImageService" type="ImageProcessor.Web.Services.LocalFileImageService, ImageProcessor.Web" /> <!--Disable the LocalFileImageService and enable this one when using virtual paths. --> <!--<service name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web"> <settings> <setting key="Container" value=""/> <setting key="MaxBytes" value="8194304"/> <setting key="Timeout" value="30000"/> <setting key="Host" value="http://yourhost.com/"/> </settings> </service>--> <service prefix="remote.axd" name="RemoteImageService" type="ImageProcessor.Web.Services.RemoteImageService, ImageProcessor.Web"> <settings> <setting key="MaxBytes" value="4194304" /> <setting key="Timeout" value="3000" /> <setting key="Protocol" value="http" /> </settings> <whitelist> </whitelist> </service> <service prefix="media/" name="AzureImageService" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureImageService, ImageProcessor.Web.Plugins.AzureBlobCache"> <settings> <setting key="StorageAccount" value="UseDevelopmentStorage=true" /> <setting key="Container" value="dev" /> <setting key="AccessType" value="Blob" /> </settings> </service> </services> </security>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ImageProcessor AzureBlobCache with Azure Storage Emulator/Azurite
I cannot seem to get ImageProcessor.AzureBlobCache working locally with Azure Storage Emulator or Azurite.
The images load, but without image processor changes and not from the blobcache (no redirect is taking place).
Any ideas?
cache.config
security.config
filesystemproviders.config
I am using UmbracoFileSystemProviders.Azure which is working fine.
ImageProcessor - 2.6.1.19
ImageProcessor.Web - 4.9.2.19
ImageProcessor.Web.Config - 2.4.1.19
ImageProcessor.Web.Plugins.AzureBlobCache - 1.4.2.19
UmbracoFileSystemProviders.Azure - 1.0.3
Seems to be working now. I upgraded all ImageProcessor dependancies to the latest versions and changed the security config to use the AzureImageService. Not sure why I couldn't get it working with CloudImageService or LocalFileImageService.
is working on a reply...