image-transcoding

SVG to PDF on a shared linux server

只愿长相守 提交于 2019-11-30 12:17:40
问题 I have a website which uses SVG for an interactive client side thingamabob. I would like to provide the option to download a PDF of the finished output. I can pass the final SVG output back to the server, where I want to convert to PDF, then return it to the client for download. This would need to work on a headless shared linux server, where installation or compilation is either an enormous pain, or impossible. The website is PHP, so the ideal solution would be PHP, or use software that's

SVG to PDF on a shared linux server

て烟熏妆下的殇ゞ 提交于 2019-11-30 02:05:25
I have a website which uses SVG for an interactive client side thingamabob. I would like to provide the option to download a PDF of the finished output. I can pass the final SVG output back to the server, where I want to convert to PDF, then return it to the client for download. This would need to work on a headless shared linux server, where installation or compilation is either an enormous pain, or impossible. The website is PHP, so the ideal solution would be PHP, or use software that's easily installed on a shared webserver. Python, perl and ruby are available, along with the usual things

Image transcoding (JPEG to PNG) with Java

蓝咒 提交于 2019-11-28 06:31:44
In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes. I am almost certain I remember a library to do this exists, I cannot remember its name. Joachim Sauer ImageIO can be used to load JPEG files and save PNG files (also into a ByteArrayOutputStream if you don't want to write to a file). adam This is what I ended up doing, I was thinking toooo far outside of the box when I asked the question.. // these are the imports needed import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import java.io

Image transcoding (JPEG to PNG) with Java

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 05:40:51
问题 In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes. I am almost certain I remember a library to do this exists, I cannot remember its name. 回答1: ImageIO can be used to load JPEG files and save PNG files (also into a ByteArrayOutputStream if you don't want to write to a file). 回答2: This is what I ended up doing, I was thinking toooo far outside of the box when I asked the question.. // these are the imports needed import java