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

Any way to set protocol of url2png_image_url ? #21

Open
birchlore opened this issue May 7, 2015 · 8 comments
Open

Any way to set protocol of url2png_image_url ? #21

birchlore opened this issue May 7, 2015 · 8 comments

Comments

@birchlore
Copy link

I have an https page, I'm trying to set url2png_image_url protocol to https. Is there any option to do this?

Thanks!

@hoetmaaiers
Copy link
Owner

Have you already tried? The protocol from the requested page should be used. More details can be found in this commit: 2601062

@birchlore
Copy link
Author

Strange, I'm getting this error:

Mixed Content: The page at 'https://getdev-staging.herokuapp.com/users/31' was loaded over HTTPS, but requested an insecure image 'http://api.url2png.com/v6/P289C47C4185BF3/8d921085e9c7df5ccbbd51447ac99be4/png/?url=http%3A%2F%2Fwww.jjsuspenders.com'. This content should also be served over HTTPS.

Here's my ERB code:

<% url = url2png_image_url project.url %>
<%= link_to image_tag(url, class: "img-responsive"), project.url %>

@bradgessler
Copy link

Same problem. This gem probably needs a new maintainer. I'm happy to take over fixing if @hoetmaaiers can give me push access or would point the official repo to https://github.com/polleverywhere/url2png-gem.

@hoetmaaiers
Copy link
Owner

Hi @bradgessler, I prefer to first review and accept some pull requests. This might convince me to hand over the ownership of the gem to you.

I'll be glad to see the first PR's coming

@bradgessler
Copy link

I ran into this again today, tried to use this gem, forgot I opened this issue, and created url2png-plus. To help folks evaluate which gem to use I compare url2png with url2png-plus at https://github.com/polleverywhere/url2png-plus#why-url2png-plus-and-not-url2png.

I'm still open to maintaining this gem, but only if you're open to replacing this source code with the url2png-plus source code and can get behind its philosophy of API version management.

@hoetmaaiers
Copy link
Owner

I see no issue in both gems being available? Replacing this gem with url2png-plus will break existing gems because they expect a different public API. Referring to url2png-plus is a possibility I guess.

@bradgessler
Copy link

bradgessler commented Nov 11, 2017 via email

@hoetmaaiers
Copy link
Owner

I am not sure what you are suggesting...

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

3 participants