ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Need suggestion for a cheap CDN for images


#1

No. of images will be around 1 million. I think I need a CDN or a image hosting site:
Total Size of images: 1 TB.
Speed and local delivery : not very important
Cost: Very Low cost

These images, pdfs, svgs will be linked to a Item Code. The only reason to host them elsewhere would be to save cost.


#2

are you certain this is even possible?


#3

@vrms you mean it will be more expensive to host pictures anywhere else ?


#4

no, I mean whether it is technically possible to host pictures attached to ERPNext Documents anywhere else then the ERPNext instance itself.


#5

seems the answer to that is yes

image


#6

btw, I am considering using amazon s3.


#7

I have a handful of images I host on a CDN called cloudinary for my ERPNext based website. I have referecned the public URL (cloudinary.com/imageurlhash464651315513…) in my JS code. I don’t think this is a typical use case, but it’s in line with what you’re asking.

Yes absolutely possible.

What you are seeing here is to provide a link to download the image in question, where it will then be saved in the ERPNext mysite/files/ structure.

How many images (and of what size?) do you need served? What is the technical concern?


#8

As you mentioned ‘your JS Code’ it’s “absolutely possible” for self-hosted instances (with access to the code) then I guess?


#9

No. of images will be around 1 million. I think I need a CDN or a image hosting site:
Total Size of images: 1 TB.
Speed and local delivery : not very important
Cost: Very Low cost

I do not need cropping or any other image service, the images just need to be fetched as is.


#10

I think you’re on the right track with S3 or a similar service.


#11

came across Wasabi recently, the price looks right. S3-ish supposedly.


#12

@dhananjay Follow up question: are these images being served to internal (ERP) users or to external (portal/ website) users, or both? I have used S3 in a similar-ish way and remotely serving images could be an effective way t o improve Frappe/ERPNext performance.


#13

These are being served to both internal and portal users.


#14

We’re using this with success: https://github.com/zerodhatech/Frappe-attachments-s3


#15

@dirkvdl16 thanks for sharing, on Frappe Cloud, so using standard S3 cli