How to save a bmp image from the internet for use in XeTeX
up vote
0
down vote
favorite
I found a bmp image file online, right clicked on it, saved it as bmp format in a local directory. Using MS Paint, I could open and view the file. Paint says the picture-file is 42.2K bytes, 240 dpi, height 0.5in, and width 0.5in. But when I tried to insert the image into a plain TeX-coded document using XeTeXpicture, there was just a blank space where the picture should be. I bracketed the bmp image with letters a and b just to set the context. From an earlier question which was answered by Akira Kakuto, see
Using Xetex to Include bmp file into document using Plain TeX
I was already given a sample bmp file that worked. So it must be something about how I am saving the bmp image from the internet.
graphics xetex plain-tex
add a comment |
up vote
0
down vote
favorite
I found a bmp image file online, right clicked on it, saved it as bmp format in a local directory. Using MS Paint, I could open and view the file. Paint says the picture-file is 42.2K bytes, 240 dpi, height 0.5in, and width 0.5in. But when I tried to insert the image into a plain TeX-coded document using XeTeXpicture, there was just a blank space where the picture should be. I bracketed the bmp image with letters a and b just to set the context. From an earlier question which was answered by Akira Kakuto, see
Using Xetex to Include bmp file into document using Plain TeX
I was already given a sample bmp file that worked. So it must be something about how I am saving the bmp image from the internet.
graphics xetex plain-tex
1
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
1
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I found a bmp image file online, right clicked on it, saved it as bmp format in a local directory. Using MS Paint, I could open and view the file. Paint says the picture-file is 42.2K bytes, 240 dpi, height 0.5in, and width 0.5in. But when I tried to insert the image into a plain TeX-coded document using XeTeXpicture, there was just a blank space where the picture should be. I bracketed the bmp image with letters a and b just to set the context. From an earlier question which was answered by Akira Kakuto, see
Using Xetex to Include bmp file into document using Plain TeX
I was already given a sample bmp file that worked. So it must be something about how I am saving the bmp image from the internet.
graphics xetex plain-tex
I found a bmp image file online, right clicked on it, saved it as bmp format in a local directory. Using MS Paint, I could open and view the file. Paint says the picture-file is 42.2K bytes, 240 dpi, height 0.5in, and width 0.5in. But when I tried to insert the image into a plain TeX-coded document using XeTeXpicture, there was just a blank space where the picture should be. I bracketed the bmp image with letters a and b just to set the context. From an earlier question which was answered by Akira Kakuto, see
Using Xetex to Include bmp file into document using Plain TeX
I was already given a sample bmp file that worked. So it must be something about how I am saving the bmp image from the internet.
graphics xetex plain-tex
graphics xetex plain-tex
asked Dec 6 at 16:36
GAS4
646
646
1
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
1
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01
add a comment |
1
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
1
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01
1
1
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
1
1
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Microsoft Internet Explorer (and Edge) will allow users to chose save format for a web image. Given the choice most Windows users would prefer to save as 24 bit BMP (16 million colour) rather than 8 bit (256 colour) GIF
Actually in this example its 32 colour greyscale as BMP or 18 colour as GIF so there is a noticable difference.
Microsoft do not set a DPI recognisable by some graphics apps in either of these downloaded formats (although MSPaint will often show 96 dpi as its working default)
Thus in order to ensure TeX applications can calculate a size for subsequent placement we need to RE-save as a convenient format such as 96 dpi PNG (32 bits)
Oddly if you then resave the new PNG as 24 bit BMP it magically is redefined as a 96 dpi BMP !!
Using this example
% test.tex
% xetex test.tex
this is raw downloaded bmp = invisible
XeTeXpicfile raw-seal_3.bmp width 6cm
par
png visible
XeTeXpicfile nh-seal_3.png width 6cm
modified bmp visible
XeTeXpicfile mod-seal_3.bmp width 6cm
bye
This is the result
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
add a comment |
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',
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463545%2fhow-to-save-a-bmp-image-from-the-internet-for-use-in-xetex%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
up vote
0
down vote
accepted
Microsoft Internet Explorer (and Edge) will allow users to chose save format for a web image. Given the choice most Windows users would prefer to save as 24 bit BMP (16 million colour) rather than 8 bit (256 colour) GIF
Actually in this example its 32 colour greyscale as BMP or 18 colour as GIF so there is a noticable difference.
Microsoft do not set a DPI recognisable by some graphics apps in either of these downloaded formats (although MSPaint will often show 96 dpi as its working default)
Thus in order to ensure TeX applications can calculate a size for subsequent placement we need to RE-save as a convenient format such as 96 dpi PNG (32 bits)
Oddly if you then resave the new PNG as 24 bit BMP it magically is redefined as a 96 dpi BMP !!
Using this example
% test.tex
% xetex test.tex
this is raw downloaded bmp = invisible
XeTeXpicfile raw-seal_3.bmp width 6cm
par
png visible
XeTeXpicfile nh-seal_3.png width 6cm
modified bmp visible
XeTeXpicfile mod-seal_3.bmp width 6cm
bye
This is the result
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
add a comment |
up vote
0
down vote
accepted
Microsoft Internet Explorer (and Edge) will allow users to chose save format for a web image. Given the choice most Windows users would prefer to save as 24 bit BMP (16 million colour) rather than 8 bit (256 colour) GIF
Actually in this example its 32 colour greyscale as BMP or 18 colour as GIF so there is a noticable difference.
Microsoft do not set a DPI recognisable by some graphics apps in either of these downloaded formats (although MSPaint will often show 96 dpi as its working default)
Thus in order to ensure TeX applications can calculate a size for subsequent placement we need to RE-save as a convenient format such as 96 dpi PNG (32 bits)
Oddly if you then resave the new PNG as 24 bit BMP it magically is redefined as a 96 dpi BMP !!
Using this example
% test.tex
% xetex test.tex
this is raw downloaded bmp = invisible
XeTeXpicfile raw-seal_3.bmp width 6cm
par
png visible
XeTeXpicfile nh-seal_3.png width 6cm
modified bmp visible
XeTeXpicfile mod-seal_3.bmp width 6cm
bye
This is the result
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Microsoft Internet Explorer (and Edge) will allow users to chose save format for a web image. Given the choice most Windows users would prefer to save as 24 bit BMP (16 million colour) rather than 8 bit (256 colour) GIF
Actually in this example its 32 colour greyscale as BMP or 18 colour as GIF so there is a noticable difference.
Microsoft do not set a DPI recognisable by some graphics apps in either of these downloaded formats (although MSPaint will often show 96 dpi as its working default)
Thus in order to ensure TeX applications can calculate a size for subsequent placement we need to RE-save as a convenient format such as 96 dpi PNG (32 bits)
Oddly if you then resave the new PNG as 24 bit BMP it magically is redefined as a 96 dpi BMP !!
Using this example
% test.tex
% xetex test.tex
this is raw downloaded bmp = invisible
XeTeXpicfile raw-seal_3.bmp width 6cm
par
png visible
XeTeXpicfile nh-seal_3.png width 6cm
modified bmp visible
XeTeXpicfile mod-seal_3.bmp width 6cm
bye
This is the result
Microsoft Internet Explorer (and Edge) will allow users to chose save format for a web image. Given the choice most Windows users would prefer to save as 24 bit BMP (16 million colour) rather than 8 bit (256 colour) GIF
Actually in this example its 32 colour greyscale as BMP or 18 colour as GIF so there is a noticable difference.
Microsoft do not set a DPI recognisable by some graphics apps in either of these downloaded formats (although MSPaint will often show 96 dpi as its working default)
Thus in order to ensure TeX applications can calculate a size for subsequent placement we need to RE-save as a convenient format such as 96 dpi PNG (32 bits)
Oddly if you then resave the new PNG as 24 bit BMP it magically is redefined as a 96 dpi BMP !!
Using this example
% test.tex
% xetex test.tex
this is raw downloaded bmp = invisible
XeTeXpicfile raw-seal_3.bmp width 6cm
par
png visible
XeTeXpicfile nh-seal_3.png width 6cm
modified bmp visible
XeTeXpicfile mod-seal_3.bmp width 6cm
bye
This is the result
edited Dec 7 at 15:10
answered Dec 7 at 1:01
KJO
823112
823112
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
add a comment |
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
Yes I know that's 50 shades of grey but I resisted putting that in my answer
– KJO
Dec 7 at 1:37
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
KJO. Thank you for helping. A little more help is needed please. If I am looking at this internet site, etc.usf.edu/clipart/1900/1954/nh-seal_3.htm, exactly what steps to follow to get a bmp of the smallest graphic (the first one on the page labeled 320x313) that TeX applications can use? Right click, select save as BMP, then use what application to RE-save as 96dpi PNG, then use what application to re-save the new PNG as 24 bit BMP?
– GAS4
Dec 7 at 13:40
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
That was the sample I tested right click save as bmp open with MSpaint then SAVE AS other format PNG it will change title to ....png so SAVE AS BMP it will now be bmp with a fixed 96 dpi so that should be usable but the PNG is preferable
– KJO
Dec 7 at 13:58
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463545%2fhow-to-save-a-bmp-image-from-the-internet-for-use-in-xetex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
If it works with one bmp but not with another it is quite probably that something is wrong with the one bmp. But without the actual file nobody will be able to test it. (The site you linked too in your first question didn't offer me bmp files, only gif.)
– Ulrike Fischer
Dec 6 at 17:28
@UlrikeFischer I am using windows 10 and the edge browser. I went to that site right clicked on the smaller state seal image selected save as, and then selected file type BMP. Then I saved it. Perhaps there is a way for me to upload the file that I saved?
– GAS4
Dec 6 at 18:02
1
if the original format is gif you can't change the type when saving. Renaming a gif to bmp to make it a bmp.
– Ulrike Fischer
Dec 6 at 18:05
You could save the file from ms paint as a png file, then load that.
– David Carlisle
Dec 6 at 21:01