•  » Extensions
  •  » [Plugin] Remote Url Function

#1 2025-08-14 10:01:20

windsage
Member
2025-08-14
2

[Plugin] Remote Url Function

Hi

Because I have many images already upload to Amazon / Cloudflare ,   because they have free plan , and the speed is faster for they have many CDNs

no need to upload on my server again ,

believe there are many people have situation like this ,  or media already in another server .


So I made this , to let the piwigo support remote URL,


https://github.com/skyfire000/piwigo-remote-url


If you don't want edit SQL by your own , you need another UI extension to support upload URLs which I also made it.

Offline

 

#2 2025-08-14 12:11:08

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14094

Re: [Plugin] Remote Url Function

Hi windsage,

I took a quick look at your plugin. Looks interesting. I haven't tested it yet.

* what about pushing it on piwigo.org/ext ?

* I understand you want to write plugin description and code comments in your native language (chinese, as deepl tells me) but it's going to make things a bit complicated for non-chinese users. Piwigo can handle plugin description in mutiple languages.

* if you don't use the multiple-size system, the image is going to be displayed in its full size everywhere. If the image is 10MB heavy, the pages are going to load quite slowly. Maybe we could keep the original file remote and use the local multiple-size cache. It reminds me of plugin S3upload https://github.com/wittman/s3upload but I don't remember how it behaves regarding multiple sizes.

* do you know about [extension by mistic100] URL Uploader : you provide an URL and Piwigo downloads (and store) the image, and it naturally uses the multiple-size system. Of course, compared to RemoteImages, it uses much more disk space on the server hosting your Piwigo.

* for now, the plugin handles images if the path starts with "http", but how do you end up with such path in the database? you need to insert lines by hand in the images table? Can you be more explicit when you write:

Add images to your Piwigo gallery with external URLs as the path

Offline

 

#3 2025-08-15 05:10:07

windsage
Member
2025-08-14
2

Re: [Plugin] Remote Url Function

the multiple-size system is not used , so when display it just shows the original image ,

so if css without write the height , the images shows could be a really mess .

a customized css need to be added


the case I made this because ,  I have about 30,000 SKUs need to be show ,

re-upload them is too heavy work ,

so I just use SQL insert to the piwigo_images table

Offline

 

#4 2025-11-11 17:48:39

tz520
Member
2025-11-11
1

Re: [Plugin] Remote Url Function

这个插件真的很不错,后期如果能让app也支持就好了,APP目前好像不支持单独的链接

Offline

 
  •  » Extensions
  •  » [Plugin] Remote Url Function

Board footer

Powered by FluxBB