Score:0

How can I use the convert program of ImageMagick and also keep the quality?

gb flag

I have a lot of .ps images and I need them in .png, so I found that the convert program could help me, however, every time I did the conversion like this: convert foo.ps foo.png the quality of the resulting image was very low. After reading the manual, I tried: convert foo.ps -quality 100 foo.png, but I didn't get different results, neither raising the 100 to 200 or more.

Levente avatar
cn flag
When I save a PNG image with another program (Gimp), which has a graphical interface, I am offered a "compression" factor for PNGs in the range of 1-9. I think it's JPGs that have a quality range like 1-100. I don't know how relevant this is.
Score:0
gb flag

After several searches on other websites (outside of Ask Ubuntu) I found the solution regarding the quality. The code would be like this: convert -density 300 foo.ps -quality 100 foo.png.

Levente avatar
cn flag
That value of `300` looks very much like a DPI value (as in Dot Per Inch)? (`density` could refer to pixel density, which indeed makes sense to express in DPI units). If yes, then it would be impacting the "resolution" of the image... Also, if this indeed is the case, a `density` value of e.g. `500`, or more, could result in huge pixel counts, and thus, huge file sizes.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.