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

pictures too? #28

Closed
labor4 opened this issue Dec 24, 2018 · 13 comments · Fixed by #319
Closed

pictures too? #28

labor4 opened this issue Dec 24, 2018 · 13 comments · Fixed by #319
Labels
enhancement New feature or request

Comments

@labor4
Copy link

labor4 commented Dec 24, 2018

Hi

is it possible to convert/wrap single/multiple pictures (png|jpg|etc) too?

cheers
manu

@gulien
Copy link
Collaborator

gulien commented Dec 24, 2018

Hello!

Not currently, but you could use the HTML conversion to handle such case.

@labor4
Copy link
Author

labor4 commented Dec 24, 2018

yes i tried it with a html wrapper. the problem is image specific: usually you dont want any margin framing or splitting on pictures or they need to be scaled proportionally. there is logic needed on the html side too.
maybe imagemagick would be a way to framework this?
i know IM is quite big.

m

@gulien
Copy link
Collaborator

gulien commented Dec 24, 2018

Indeed, let’s mark this as enhancement. 👍

@gulien gulien added the enhancement New feature or request label Dec 24, 2018
@yoyomule
Copy link

Yes, this feature is more useful. Is the current pptx document converted to PNG? In addition, whether to consider supporting the conversion of office documents to html5 in the future.

@gulien
Copy link
Collaborator

gulien commented Jan 26, 2019

Currently the scope of Gotenberg is to convert various files to PDF. So conversion to others formats is not something we plan to add, at least for now.

@tobwen
Copy link

tobwen commented Feb 23, 2019

I think, adding Inkscape, Ghostscript and ImageMagick to Gotenberg is a goal, we could achieve together and make this tool even more famous.

@gulien
Copy link
Collaborator

gulien commented Feb 25, 2019

Indeed 😄 but I do not want to have an image > 1GB

@tobwen
Copy link

tobwen commented Feb 26, 2019

Then move away from debian 😄 No, for real, maybe a fork in future...

A container based conversion service would be a pretty good alternative to all those cloud services, where you don't know what's happening with your documents. But I fully understand if this isn't the way you imagine Gotenberg to go.

@lukichev
Copy link

I agree with @tobwen on this one. ImageMagick and GS support would be very cool!

@vegarsti
Copy link

vegarsti commented Feb 28, 2020

+1 for a request for this, it would be super neat. We have this as a big use case at work: Converting images to PDF. Is there any way I could help?

@gulien
Copy link
Collaborator

gulien commented Feb 28, 2020

Maybe it should be possible using Google Chrome?

@vegarsti
Copy link

vegarsti commented Mar 4, 2020

Looks like PDFium is what Chrome uses

@gulien gulien added this to the 7.0.0 milestone Jun 24, 2020
@PhE
Copy link

PhE commented Jan 21, 2021

We have a friendly fork that can convert several images (png, jpeg, gif) in a single page (svg) ... converted to a PDF :

image

with a single APi call :

$ curl --request POST \
    --url http://localhost:3000/convert/inkscape \
    --header 'Content-Type: multipart/form-data' \
    --form files=@gotenberg_ter.svg \
    --form files=@image1.png \
    --form files=@image2.gif \
    --form files=@image3.jpeg \
    -o result_images.pdf

@gulien gulien mentioned this issue Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants