frytzl / Badgernet.Umbraco.WebPicAuto

MIT License
3 stars 0 forks source link

Converter does not work in Umbraco Cloud #3

Open Eaglef90 opened 5 months ago

Eaglef90 commented 5 months ago

I have two transparent background PNGs that get converted fine on my local dev copy but when I try to use my production copy hosted in Umbraco Cloud the conversions fail with this error in the logs:

@MessageTemplate WebPicAuto: error converting image: {0} Could not find a part of the path 'C:\home\site\wwwroot\wwwroot\media\avacb2ul\ffxiv-dawntrail-logo.png'. SourceContext

ActionName Umbraco.Cms.Web.BackOffice.Controllers.MediaController.PostAddFile (Umbraco.Web.BackOffice)

RequestPath /umbraco/backoffice/umbracoapi/media/PostAddFile

ProcessName w3wp

frytzl commented 5 months ago

Hi, yes it seems that package is looking for images in the wrong path. This might be due to the package not taking custom file providers into account. In which folder are your images stored?

Eaglef90 commented 5 months ago

I have no idea where the images are stored this is the Cloud Hosting service by Umbraco HQ. From what I can tell Umbraco runs their cloud provider off Azure and since they have a package "Umbraco.Cloud.StorageProviders.AzureBlob" So I am betting the images get stored there and not at the local storage but beyond this I can't tell you how the backed is setup for there hosting provider.

frytzl commented 5 months ago

WePicAuto was not made with Umbraco Cloud and Azure Storage in mind. Since i dont use any of those things, it would be impossible for me to test the package without subscribing to those services. For now, webpic only works with local media. (I should mention that in the readme i guess).

frytzl commented 5 months ago

Im leaving this issue open, I will look into integrating with Azure Blob Sorage in the future.

Eaglef90 commented 4 months ago

I have been thinking on this since I really could use your package. I think cloud gives a 30 day free trial but I would also be willing to spin up a project for your usage and testing on my cloud server if you wanted. If interested let me know and I will contact you via your listed email on your profile to discuss more details.

frytzl commented 4 months ago

Hi Matthew, i am currently workin on providing option to process existing media. (With my limited time that i have). I am also looking into making the package work with Azure Blob storage. I think i can get free test instance of it directly on Azure. Will let you know how that goes.

Eaglef90 commented 4 months ago

I am 99.9% sure UmbCloud runs in Azure (Seeing as my config has SQL Azure and Blob storage settings). If everything goes well with Azure I will be more then happy to fully test everything in my UmbCloud environment.