-
Notifications
You must be signed in to change notification settings - Fork 63
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
Images #21
Comments
I'm also trying to use it with the company's logo image, but I didn't succeed. |
@olakoziou, @gdcardoso, could you create a codesandbox showing the problem? |
@ivmarcos thanks for the feedback, but i found that the problem is when i use an image hosted in digital ocean spaces. Using a google image it worked perfectly. |
@ivmarcos yep, as @gdcardoso said. I use firebase and the problem is with link from there, ex https://codesandbox.io/s/relaxed-star-3h7ty?file=/src/App.js |
Did anyone find solution to this problem of displaying images in pdf? |
@olakoziou Hi there. You could try use svg format for images. Its works for me |
I am getting a CORS error when trying to create a pdf from HTML that includes an image that is stored on an S3 bucket. The image renders just fine in the HTML, but it does not show up on the pdf. Any ideas? |
How you add image in your code? Could you send example? |
I am using Leaflet.js and adding the image as a layer on the map with the addLayer() method. |
Have you tried the latest v.0.0.12? If so, please provide a codesandbox or jsfiddle with the issue. |
Closing for now, cors errors with images were fixed in recent releases. Reopen in case the issue still remain. |
@jcpage02 @zainulabd786 @gdcardoso @olakoziou alternative solution 😅 Use https://astro-cors-server.herokuapp.com/fetch/ for bypass CORS, example: < img src="http://yourdomain.com/yourpic.png" /> use: < img src="https://astro-cors-server.herokuapp.com/fetch/http://yourdomain.com/yourpic.png" /> |
I'm trying to implement your tool, but I have problem with downloading pdfs with images (set both as background-image and img). Img is dynamic and set with img={example} Do you have any idea how to fix it?
The text was updated successfully, but these errors were encountered: