![]() Then we wouldn't ask ourselves about creating synthetic tests, we'd just switch some wikis to the new software and measure the impact. Testing new scaler software for a particular format in our code should be easier. convert -density 300 page.tif output.pdf. First I need to merge some images into a PDF. But I encounter some issues with the syntax. Unfortunately, as you know, we're far from that. I want to shift from imagemagick to graphicsmagick. If our code was better organized, testing GraphicsMagick would only amount to switching from a "convert" command to "gm convert" with exactly the same parameters. Most of the work required here is code cleanup and reorganization. ![]() It's the only way to be really sure, in fact, because regardless of how cleverly you pick your test images, or how large the sample is, it will always be an approximation of reality, and the real deal is what matters. ![]() The worst that can happen is that GM doesn't perform better and we've made our code more flexible and future-proof.Īs you said, we can "do it live" to figure out if it performs better. I'd argue that the messy way the code is organized is actually an argument for cleaning things up regardless and having a saner per-format logic, and that time is better invested doing so than setting up a larger scale test. I vote for switching to graphicsmagick anyway. If it was to be added as an option, would you prefer a new set of config options or to modify how the current ones are used? also would you prefer it was handled in a separate "if" block or merged with the current imagemagick support? I made a quick patch for my system, however I would think it might be better to actually replace imagemagick with graphicsmagick (for the reasons listed above). It is quite easy to add support for this. GraphicsMagick integrates the -strip with the profile option that already is there to manage image profiles The -thumbnail on imagemagick is a shortcut to "-resize 120x120 -strip". Gm convert -size 120x120 cockatoo.jpg -resize 120x120 +profile "*" thumbnail.jpg To thumbnail on graphicsmagick you would do It comes with a compatibility package to provide the imagemagick convert/mogrify etc commands but has dropped some of the imagemagick shortcuts like "-thumbnail" It also seems to have improved documentation (or at least it has examples and descriptions in the man file that imagemagick does not) Graphicsmagick ( ) is a fork of imagemagick, that is smaller, faster and has more api stability.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |