Add tif image to LaTeX












49














I have to add .tif graphic in my LaTeX file, but it is not working.



usepackage{graphicx}

begin{figure}[h]
begin{center}
includegraphics[width=15mm]{myGraphic.tif}
end{center}
end{figure}


After some research, .tif files won't work in pdfLaTeX or something. But I need to have my figure with .tif extension (not .jpg or others). How can I add .tif figure in my .tex file?










share|improve this question




















  • 4




    We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
    – Joseph Wright
    Jan 9 '13 at 11:09






  • 5




    You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
    – Jake
    Jan 9 '13 at 11:12






  • 5




    A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
    – David Carlisle
    Jan 9 '13 at 11:21






  • 3




    @user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
    – Joseph Wright
    Jan 9 '13 at 11:23






  • 3




    tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
    – wasteofspace
    Jan 9 '13 at 11:26
















49














I have to add .tif graphic in my LaTeX file, but it is not working.



usepackage{graphicx}

begin{figure}[h]
begin{center}
includegraphics[width=15mm]{myGraphic.tif}
end{center}
end{figure}


After some research, .tif files won't work in pdfLaTeX or something. But I need to have my figure with .tif extension (not .jpg or others). How can I add .tif figure in my .tex file?










share|improve this question




















  • 4




    We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
    – Joseph Wright
    Jan 9 '13 at 11:09






  • 5




    You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
    – Jake
    Jan 9 '13 at 11:12






  • 5




    A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
    – David Carlisle
    Jan 9 '13 at 11:21






  • 3




    @user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
    – Joseph Wright
    Jan 9 '13 at 11:23






  • 3




    tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
    – wasteofspace
    Jan 9 '13 at 11:26














49












49








49


12





I have to add .tif graphic in my LaTeX file, but it is not working.



usepackage{graphicx}

begin{figure}[h]
begin{center}
includegraphics[width=15mm]{myGraphic.tif}
end{center}
end{figure}


After some research, .tif files won't work in pdfLaTeX or something. But I need to have my figure with .tif extension (not .jpg or others). How can I add .tif figure in my .tex file?










share|improve this question















I have to add .tif graphic in my LaTeX file, but it is not working.



usepackage{graphicx}

begin{figure}[h]
begin{center}
includegraphics[width=15mm]{myGraphic.tif}
end{center}
end{figure}


After some research, .tif files won't work in pdfLaTeX or something. But I need to have my figure with .tif extension (not .jpg or others). How can I add .tif figure in my .tex file?







graphics tiff






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 9 '13 at 11:17









Joseph Wright

202k21554880




202k21554880










asked Jan 9 '13 at 11:05









user2168

348135




348135








  • 4




    We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
    – Joseph Wright
    Jan 9 '13 at 11:09






  • 5




    You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
    – Jake
    Jan 9 '13 at 11:12






  • 5




    A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
    – David Carlisle
    Jan 9 '13 at 11:21






  • 3




    @user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
    – Joseph Wright
    Jan 9 '13 at 11:23






  • 3




    tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
    – wasteofspace
    Jan 9 '13 at 11:26














  • 4




    We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
    – Joseph Wright
    Jan 9 '13 at 11:09






  • 5




    You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
    – Jake
    Jan 9 '13 at 11:12






  • 5




    A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
    – David Carlisle
    Jan 9 '13 at 11:21






  • 3




    @user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
    – Joseph Wright
    Jan 9 '13 at 11:23






  • 3




    tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
    – wasteofspace
    Jan 9 '13 at 11:26








4




4




We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
– Joseph Wright
Jan 9 '13 at 11:09




We hav a question yesterday asking much the same, which got marked as a duplicate of Which graphics formats can be included in documents processed by latex or pdflatex?. Bottom line: you have to convert your TIFF into another format.
– Joseph Wright
Jan 9 '13 at 11:09




5




5




You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
– Jake
Jan 9 '13 at 11:12




You should convert your file to PNG. There's no problem with this, it's a lossless format, so the picture will look identical to your TIFF, with the added benefit of usually resulting in a smaller file size. Take a look at Using macros in DeclareGraphicsRule statement using shell command for an automated way of doing this on the fly.
– Jake
Jan 9 '13 at 11:12




5




5




A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
– David Carlisle
Jan 9 '13 at 11:21




A printing house that requires a particular format would normally not want the image included into the latex at all they would want a blank in the main document and the images as separate high resolution bitmaps printed via a separate process for re-combination later.
– David Carlisle
Jan 9 '13 at 11:21




3




3




@user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
– Joseph Wright
Jan 9 '13 at 11:23




@user2168 Many print houses still ask for TIFF images, but that is separate from any typeset version as David says. In any case, LaTeX cannot read TIFF files, so you have no option but to convert them if you want to be able to typeset your document.
– Joseph Wright
Jan 9 '13 at 11:23




3




3




tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
– wasteofspace
Jan 9 '13 at 11:26




tiff stands for "tagged image file format" -- it contains tags specifying format and actual images. so in principal, a tiff file can contain png, jpg, gif, and so on (since gif was still a proprietary format when pdftex was being developed, it supposedly couldn't be processed using free software, which led to pdftex dropping tiff format support). so you should in principal convert your tiff image into a format that matches that inside the tiff -- mapping gif to png as necessary.
– wasteofspace
Jan 9 '13 at 11:26










1 Answer
1






active

oldest

votes


















61














No LaTeX engine can read .tif files directly: you will have to convert to another format (more on the graphics formats recognised by TeX is in Which graphics formats can be included in documents processed by latex or pdflatex?). Probably the easiest route is to use pdfLaTeX with the graphics converted to .png format. This conversion is lossless and therefore the images will be identical.



You can do this by hand, but it is also possible to set up to do the job automatically. The method is discussed in Using macros in DeclareGraphicsRule statement using shell command: the basic requirement is something like



defeattif#1.tif{#1}
DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 eattif#1-tif-converted-to.png }
AppendGraphicsExtensions{.tif}


in your preamble to enable the conversion. This requires that the convert program is available and needs shell escape enabled.



You can use a perhaps clearer syntax by loading the package epstopdf:



usepackage{epstopdf}
epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 OutputFile}
AppendGraphicsExtensions{.tif}


can substitute the three lines of code above.






share|improve this answer























  • XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
    – WillAdams
    Dec 23 '15 at 20:32











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2ftex.stackexchange.com%2fquestions%2f89989%2fadd-tif-image-to-latex%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









61














No LaTeX engine can read .tif files directly: you will have to convert to another format (more on the graphics formats recognised by TeX is in Which graphics formats can be included in documents processed by latex or pdflatex?). Probably the easiest route is to use pdfLaTeX with the graphics converted to .png format. This conversion is lossless and therefore the images will be identical.



You can do this by hand, but it is also possible to set up to do the job automatically. The method is discussed in Using macros in DeclareGraphicsRule statement using shell command: the basic requirement is something like



defeattif#1.tif{#1}
DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 eattif#1-tif-converted-to.png }
AppendGraphicsExtensions{.tif}


in your preamble to enable the conversion. This requires that the convert program is available and needs shell escape enabled.



You can use a perhaps clearer syntax by loading the package epstopdf:



usepackage{epstopdf}
epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 OutputFile}
AppendGraphicsExtensions{.tif}


can substitute the three lines of code above.






share|improve this answer























  • XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
    – WillAdams
    Dec 23 '15 at 20:32
















61














No LaTeX engine can read .tif files directly: you will have to convert to another format (more on the graphics formats recognised by TeX is in Which graphics formats can be included in documents processed by latex or pdflatex?). Probably the easiest route is to use pdfLaTeX with the graphics converted to .png format. This conversion is lossless and therefore the images will be identical.



You can do this by hand, but it is also possible to set up to do the job automatically. The method is discussed in Using macros in DeclareGraphicsRule statement using shell command: the basic requirement is something like



defeattif#1.tif{#1}
DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 eattif#1-tif-converted-to.png }
AppendGraphicsExtensions{.tif}


in your preamble to enable the conversion. This requires that the convert program is available and needs shell escape enabled.



You can use a perhaps clearer syntax by loading the package epstopdf:



usepackage{epstopdf}
epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 OutputFile}
AppendGraphicsExtensions{.tif}


can substitute the three lines of code above.






share|improve this answer























  • XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
    – WillAdams
    Dec 23 '15 at 20:32














61












61








61






No LaTeX engine can read .tif files directly: you will have to convert to another format (more on the graphics formats recognised by TeX is in Which graphics formats can be included in documents processed by latex or pdflatex?). Probably the easiest route is to use pdfLaTeX with the graphics converted to .png format. This conversion is lossless and therefore the images will be identical.



You can do this by hand, but it is also possible to set up to do the job automatically. The method is discussed in Using macros in DeclareGraphicsRule statement using shell command: the basic requirement is something like



defeattif#1.tif{#1}
DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 eattif#1-tif-converted-to.png }
AppendGraphicsExtensions{.tif}


in your preamble to enable the conversion. This requires that the convert program is available and needs shell escape enabled.



You can use a perhaps clearer syntax by loading the package epstopdf:



usepackage{epstopdf}
epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 OutputFile}
AppendGraphicsExtensions{.tif}


can substitute the three lines of code above.






share|improve this answer














No LaTeX engine can read .tif files directly: you will have to convert to another format (more on the graphics formats recognised by TeX is in Which graphics formats can be included in documents processed by latex or pdflatex?). Probably the easiest route is to use pdfLaTeX with the graphics converted to .png format. This conversion is lossless and therefore the images will be identical.



You can do this by hand, but it is also possible to set up to do the job automatically. The method is discussed in Using macros in DeclareGraphicsRule statement using shell command: the basic requirement is something like



defeattif#1.tif{#1}
DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 eattif#1-tif-converted-to.png }
AppendGraphicsExtensions{.tif}


in your preamble to enable the conversion. This requires that the convert program is available and needs shell escape enabled.



You can use a perhaps clearer syntax by loading the package epstopdf:



usepackage{epstopdf}
epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 OutputFile}
AppendGraphicsExtensions{.tif}


can substitute the three lines of code above.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 13 '17 at 12:36









Community

1




1










answered Jan 9 '13 at 11:22









Joseph Wright

202k21554880




202k21554880












  • XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
    – WillAdams
    Dec 23 '15 at 20:32


















  • XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
    – WillAdams
    Dec 23 '15 at 20:32
















XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
– WillAdams
Dec 23 '15 at 20:32




XeTeX on Mac OS X will read .tiff (and most other pixel image format) files, by using Mac OS X's coreimage for the heavy-lifting.
– WillAdams
Dec 23 '15 at 20:32


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2ftex.stackexchange.com%2fquestions%2f89989%2fadd-tif-image-to-latex%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

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?