Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set CDN as the image source? #32

Closed
bitdust opened this issue Aug 8, 2016 · 57 comments
Closed

How to set CDN as the image source? #32

bitdust opened this issue Aug 8, 2016 · 57 comments

Comments

@bitdust
Copy link
Owner

bitdust commented Aug 8, 2016

It's strongly recommended to set a private CDN as the image source which can improve the stablity and reduce the pressure on the server side.

  1. go to http://www.cloudinary.com and sign up a Free account. (and don't forget to check the register mail!)
    访问 http://www.cloudinary.com 并注册一个免费账户。(记得检查确认邮件!不然帐号会被停用!)

  2. login in your account and copy the "cloud name" "api key" and "api secret".
    登录账户并记下你的 cloud name、api key 以及 api secret
    unnamed qq screenshot20170410213159

  3. click "settings" button.
    点击 settings 按钮。
    qq 20160808162413

  4. select "CDN"
    选择 image source 为 CDN
    unnamed qq screenshot20170410213836

  5. fill your "cloud name" "api key" and "api secret".
    填入你的 cloud name、api key 以及 api secret。
    unnamed qq screenshot20170410213253

  6. apply the change.
    确认更改设置。

7.done.
搞定!

@bitdust bitdust changed the title How to get the Cloud Name (of http://cloudinary.com/) ? How to get the Cloud Name (of cloudinary.com) ? Aug 8, 2016
@bitdust
Copy link
Owner Author

bitdust commented Aug 8, 2016

施工占楼

@bitdust bitdust closed this as completed Aug 8, 2016
@bitdust bitdust changed the title How to get the Cloud Name (of cloudinary.com) ? How to set CDN as the image source? Aug 8, 2016
@codexss
Copy link

codexss commented Sep 16, 2016

看起来腾讯云的万象优图也有免费的CDN,并且支持镜像源映射
免费配额为50G的储存空间和50G流量
https://www.qcloud.com/product/ci.html
image

@bitdust
Copy link
Owner Author

bitdust commented Sep 23, 2016

@codexss
刚才试了一下,似乎没有cloudinary注册使用的流程友好,所以我就不把他加成默认的图片源了。不过我考虑增加一个自定义图片源的选项,来满足诸君的探索心 😄 。

@mingyuerujing
Copy link

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.IO.FileNotFoundException: G:\EarthLiveSharp\images\0_0.png
在 System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
在 EarthLiveSharp.scraper.JoinImage()
在 EarthLiveSharp.mainForm.startLogic()
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************
mscorlib
程序集版本:4.0.0.0
Win32 版本:4.6.1080.0 built by: NETFXREL3STAGE

基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

EarthLiveSharp
程序集版本:1.0.0.0
Win32 版本:1.0.0.0

基本代码:file:///G:/EarthLiveSharp/EarthLiveSharp.exe

System.Windows.Forms
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
程序集版本:4.0.0.0
Win32 版本:4.6.1081.0 built by: NETFXREL3STAGE

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
程序集版本:4.0.0.0
Win32 版本:4.6.1078.0 built by: NETFXREL3STAGE

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
程序集版本:4.0.0.0
Win32 版本:4.6.1064.2 built by: NETFXREL3STAGE

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.resources.dll

System.Windows.Forms.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll

mscorlib.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

@junliangi
Copy link

cloudinary网址打不开什么鬼,还是我这边代理问题

@bitdust
Copy link
Owner Author

bitdust commented Dec 20, 2016

@junliangi 我这里没问题
不行切orgin暂时用着
或者留个邮箱,我共享你一个ID号

@junliangi
Copy link

junliangi commented Dec 22, 2016

@bitdust 邮箱:xxxxx@xxxx.com Thank

@mengzilym
Copy link

是不是要一直打开着软件才能更新壁纸?

@bitdust
Copy link
Owner Author

bitdust commented Feb 18, 2017

@mengzilym 是这样,不过这个小程序会自动随系统启动,后台运行。
而且开销极低,不占内存。

@wasas
Copy link

wasas commented Feb 21, 2017

这个存图片的网站, 免费的好像只有 2G 空间, 一不小心就满了.. 怎么清空呢?

@chermy
Copy link

chermy commented Feb 22, 2017

@wasas 联系客服下工单, 之后客服会回复你邮件确认, 回复即可. 最好在晚上操作. 回复很快.

@wasas
Copy link

wasas commented Feb 28, 2017

@chermy 感谢...
目前使用这位的清空软件 win 版 #29
我有 VPS, 路由也能运行一些脚本, 不过没弄明白 py 版本应该怎么使用..

@Anarky1900
Copy link

setting貌似出了一点问题,只能自己改配置文件。

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 是最新版吗?什么操作出问题了?

@Anarky1900
Copy link

Anarky1900 commented Apr 21, 2017

@bitdust 是的,点CDNsetting的下半部分会消失,没办法填数据。改了配置文件貌似还是不行
这里是配置文件
<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0"/> <supportedRuntime version="v2.0.50727"/> </startup> <appSettings> <add key="version" value="v3.5" /> <add key="image_folder" value="D:\安装包\EarthLiveSharp\images" /> <add key="interval" value="10" /> <add key="autostart" value="True" /> <add key="size" value="4" /> <add key="zoom" value="70" /> <add key="image_source" value="http://res.cloudinary.com/da7lfsmqn/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106" /> <add key="source_selection" value="1" /> <add key="cloud_name" value="da7lfsmqn" /> <add key="api_key" value="612948298285481" /> <add key="api_secret" value="PnE7sNch8fjsVT6fRlwSvmXwvj8" /> <add key="ClientSettingsProvider.ServiceUri" value="CLOUDINARY_URL=cloudinary://612948298285481:PnE7sNch8fjsVT6fRlwSvmXwvj8@da7lfsmqn" /> </appSettings> <system.web> <membership defaultProvider="ClientAuthenticationMembershipProvider"> <providers> <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/> </providers> </membership> <roleManager defaultProvider="ClientRoleProvider" enabled="true"> <providers> <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/> </providers> </roleManager> </system.web> </configuration>

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

奇怪我这里没有复现这个问题。
建议你记录下现有的的设置,然后重新下载个新的程序试试~不要替换配置文件,重新手动设置下

我猜猜,你是不是在用笔记本电脑,1080P分辨率屏幕?

@Anarky1900
Copy link

是的,sp4

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 留个邮箱吧~我给你发个新版的测试下

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 似乎邮件地址错了。。
你来这里下载吧:
https://drive.google.com/file/d/0Bw5fR64ORQMbaXBHOVZ6X21jdjA/view

@Anarky1900
Copy link

@bitdust sitting界面没问题了,但是依旧无法获取图片

get latest ImageID] 2017/04/21/153000
基础连接已经关闭: 接收时发生错误。 2017/04/21/153000
[image_folder]D:\安装包\EarthLiveSharp\images [image_source]http://res.cloudinary.com/da7lfsmqn/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106 [size]4

@Anarky1900
Copy link

orgin是可用的

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 这个问题好奇怪。。
在你的浏览器下,能打开这个链接吗?
http://res.cloudinary.com/da7lfsmqn/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/2017/04/21/155000_0_0.png

@Anarky1900
Copy link

火狐可以,edge不行。看来是我的问题,我再想想办法。

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 可能是你那里网络连接问题。

@Anarky1900
Copy link

现在可以打开了,依旧接收错误ORZ

@bitdust
Copy link
Owner Author

bitdust commented Apr 21, 2017

@Anarky1900 我谷歌的结果似乎是和HTTP连接数有关~
可能是一直尝试次数过多的原因,那么重启下电脑试试?

@junliangi
Copy link

cloudinary储存满了,有什么可以方便清理掉的方法?

@bitdust
Copy link
Owner Author

bitdust commented Jun 21, 2017

@junliangi 试试新版本,在补充一些设置后,就可以自动清理缓存了!

@junliangi
Copy link

junliangi commented Jun 21, 2017

@bitdust cloudinary账号被停用,应该怎么恢复?

@bitdust
Copy link
Owner Author

bitdust commented Jun 21, 2017

@junliangi 要么发邮件。。不过还是重新申一个吧,花不了5分钟

@junliangi
Copy link

@bitdust 已经让客服给删除了,新版本是不是会自动删除?

@bitdust
Copy link
Owner Author

bitdust commented Jun 22, 2017

@junliangi 是的,需要多设置些东西,看看上面的说明吧

@younglamb
Copy link

你好,请问为什么我的软件版本选择了 CDN ,但是没有出现 cloud name 这类的设置呢?截图在这里http://weibo.com/1870601202/Fa8BViVCF?ref=home

@bitdust
Copy link
Owner Author

bitdust commented Jun 30, 2017

@younglamb 你的版本太老了。。从我的release页下载新版本吧

@junliangi
Copy link

现在EarthLive一直不更新从cdn换到orgin也一样,哪里问题?其他用户也这样吗?
u3_p_s ber9a17l1gs85

@bitdust
Copy link
Owner Author

bitdust commented Jul 2, 2017

@junliangi 最近官方服务器确实有不稳定的现象~并不清楚原因

@Zhang-Siyang
Copy link

呃,每个人都用自己的CDN,那不还是会给服务器带来很大的压力吗?应该是搭建一个公用的CDN,没人都从上面下载才对呀

@bitdust
Copy link
Owner Author

bitdust commented Sep 5, 2017

@Zhang-Siyang 做过测试,只要有一个用户缓存图片后,其他用户都是从CDN网络中直接获取的最新图片,不会对原服务器产生压力。

@Zhang-Siyang
Copy link

@bitdust 原来是这样

@Soindigo
Copy link

每次启动都会有这个提示 请问可以关闭吗

@bitdust
Copy link
Owner Author

bitdust commented Sep 14, 2017

@Soindigo 那何不按上面的说明配置一个CDN账户呢?配置完成后就不会提示消息了

@junliangi
Copy link

不知为什么这几天使用cdn不同步了 只能切换orgin了

@ZhongXinlin
Copy link

我的不更新了,有谁也遇到这个问题了吗

@WangLeGeWang
Copy link

支持阿里云的对象储存吗?

@bitdust
Copy link
Owner Author

bitdust commented Sep 17, 2018

支持阿里云的对象储存吗?

不支持

@halo67
Copy link

halo67 commented Mar 27, 2019

额,用了CDN每次开机还是会跳到这个界面吗

@bitdust
Copy link
Owner Author

bitdust commented Mar 28, 2019

额,用了CDN每次开机还是会跳到这个界面吗

亲,用了CDN就不会跳了呢。

@halo67
Copy link

halo67 commented Mar 28, 2019

额,用了CDN每次开机还是会跳到这个界面吗

亲,用了CDN就不会跳了呢。

重启过后它确实还是会自动跳转到github。。。

@halo67
Copy link

halo67 commented Mar 29, 2019

额,用了CDN每次开机还是会跳到这个界面吗

亲,用了CDN就不会跳了呢。

重启会跳,关机再开机不会跳了

@Wangzhiran
Copy link

可以,很高清,之前在52下的汉化修改版win10存在兼容问题,谢谢

@bitdust
Copy link
Owner Author

bitdust commented Aug 22, 2019

@Wangzhiran 汉化版不是我做的。。这么个小工具配一次就不用管了,所以个人认为汉化不是很有必要。

@junliangi
Copy link

最近不知道啥原因显示同步新图像之后刷新几次或者等一会就自动换成这个图像了,以为是版本问题换成最新的还是这样。有跟我一样的嘛
QQ图片20200712230051

@EnochZhangY
Copy link

你好作者
我运行3.9的时候会出现远程服务器返回错误: (404) 未找到
再换了3.85老版本时候出现这个问题[himawari8 connection error]
是我的网速问题吗?
运行之前所有的版本都不行,都会出现远程服务器返回错误: (404) 未找到
所以 @ bitdust
期望你的解答,谢谢

@doug4567
Copy link

doug4567 commented Mar 7, 2022

作者你好..突然發現目前資料抓取有問題..我是用CDN做為圖源..不過目前似乎一直抓不到最新的圖..不知道是什麼原因就是了

image

@EnochZhangY
Copy link

EnochZhangY commented Mar 8, 2022 via email

@doug4567
Copy link

這陣子又無法自動更新圖資了...有好幾天都是這樣的情形

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests