How to know which command settings of ImageMagick created a particular image












0















Consider I have created an image unknown.tiff from a page of a PDF, named doc.pdf, where the exact command for conversion aren't known. The size of this image is ~ 1MB.



The exact command isn't known, but it is known that the changes are majorly on depth and density. (A subset of these two, would do too)



Now, the normal command pattern is:



convert -density 300 PDF.pdf[page-number] -depth 8 image.tiff


But this gives me a file of ~17 MB, which obviously isn't the one I am looking for. If I remove depth, then I get a file of ~34 MB, and when I remove both, I get a blurred image of 2 MB. I also removed density only, then too the results don't match (~37 MB).



Since the output size of the image unknown.tiff is so low, I've hypothesized that it might take less time to get produced.



Since the time of conversion is of great concern to me, I want to know the ways I can come to the exact command which produced unknown.tiff










share|improve this question


















  • 1





    Try identify -verbose image.tiff to see what you can see...

    – Mark Setchell
    Nov 22 '18 at 13:36











  • If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

    – GeeMack
    Nov 23 '18 at 15:04
















0















Consider I have created an image unknown.tiff from a page of a PDF, named doc.pdf, where the exact command for conversion aren't known. The size of this image is ~ 1MB.



The exact command isn't known, but it is known that the changes are majorly on depth and density. (A subset of these two, would do too)



Now, the normal command pattern is:



convert -density 300 PDF.pdf[page-number] -depth 8 image.tiff


But this gives me a file of ~17 MB, which obviously isn't the one I am looking for. If I remove depth, then I get a file of ~34 MB, and when I remove both, I get a blurred image of 2 MB. I also removed density only, then too the results don't match (~37 MB).



Since the output size of the image unknown.tiff is so low, I've hypothesized that it might take less time to get produced.



Since the time of conversion is of great concern to me, I want to know the ways I can come to the exact command which produced unknown.tiff










share|improve this question


















  • 1





    Try identify -verbose image.tiff to see what you can see...

    – Mark Setchell
    Nov 22 '18 at 13:36











  • If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

    – GeeMack
    Nov 23 '18 at 15:04














0












0








0








Consider I have created an image unknown.tiff from a page of a PDF, named doc.pdf, where the exact command for conversion aren't known. The size of this image is ~ 1MB.



The exact command isn't known, but it is known that the changes are majorly on depth and density. (A subset of these two, would do too)



Now, the normal command pattern is:



convert -density 300 PDF.pdf[page-number] -depth 8 image.tiff


But this gives me a file of ~17 MB, which obviously isn't the one I am looking for. If I remove depth, then I get a file of ~34 MB, and when I remove both, I get a blurred image of 2 MB. I also removed density only, then too the results don't match (~37 MB).



Since the output size of the image unknown.tiff is so low, I've hypothesized that it might take less time to get produced.



Since the time of conversion is of great concern to me, I want to know the ways I can come to the exact command which produced unknown.tiff










share|improve this question














Consider I have created an image unknown.tiff from a page of a PDF, named doc.pdf, where the exact command for conversion aren't known. The size of this image is ~ 1MB.



The exact command isn't known, but it is known that the changes are majorly on depth and density. (A subset of these two, would do too)



Now, the normal command pattern is:



convert -density 300 PDF.pdf[page-number] -depth 8 image.tiff


But this gives me a file of ~17 MB, which obviously isn't the one I am looking for. If I remove depth, then I get a file of ~34 MB, and when I remove both, I get a blurred image of 2 MB. I also removed density only, then too the results don't match (~37 MB).



Since the output size of the image unknown.tiff is so low, I've hypothesized that it might take less time to get produced.



Since the time of conversion is of great concern to me, I want to know the ways I can come to the exact command which produced unknown.tiff







imagemagick imagemagick-convert imagemagick-identify






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 11:21









MooncraterMooncrater

8601126




8601126








  • 1





    Try identify -verbose image.tiff to see what you can see...

    – Mark Setchell
    Nov 22 '18 at 13:36











  • If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

    – GeeMack
    Nov 23 '18 at 15:04














  • 1





    Try identify -verbose image.tiff to see what you can see...

    – Mark Setchell
    Nov 22 '18 at 13:36











  • If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

    – GeeMack
    Nov 23 '18 at 15:04








1




1





Try identify -verbose image.tiff to see what you can see...

– Mark Setchell
Nov 22 '18 at 13:36





Try identify -verbose image.tiff to see what you can see...

– Mark Setchell
Nov 22 '18 at 13:36













If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

– GeeMack
Nov 23 '18 at 15:04





If the TIF was created with ImageMagick it may have used one of several compression methods. The command... convert -list compress ... will show you which methods are available in your version of IM. With most newer versions of IM, the compression method will be included in the output of the command... convert unknown.tiff -verbose info:. If that doesn't work, try what Mark said above... identify -verbose unknown.tiff.

– GeeMack
Nov 23 '18 at 15:04












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53429840%2fhow-to-know-which-command-settings-of-imagemagick-created-a-particular-image%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53429840%2fhow-to-know-which-command-settings-of-imagemagick-created-a-particular-image%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python