Re: Convert vector graphics to bitmap
On 23. juni 2014 11:16, Christian W wrote: The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead. Too fine detail will be lost - that is obvious. The interesting part is how. If a single pixel contains some white and some black due to fine detail - what should happen? Black pixel? White? Gray pixel? (Gray might not be possible). And when many such pixels make up a region - will the whole region be white/black? Or a dithering pattern? Aliasing effects? Their press might do this reduction a bit different than your home printer, hence the warning about surprises. They are publishers, not experts in your field. So they might not understand your computed images. So they cannot tell a bad conversion form a good one. which is why they tell you to make bitmaps in the native resolution of their imager. They can then print exactly what they get, no surprises. You get full control of the conversion process, and can review each image. If some are bad, you can use different parameters or different software to process them. You don't want the first edition to print with some griveous conversion fault - and they don't want that either.
Re: Convert vector graphics to bitmap
I still don't buy that. You send a printer a PDF. That is a vector graphic document. You send it to them in a PDF so it prints exactly what you give them. Yes, professional printers are different than home printers. They are far more complex and yes, I did have a problem with converting from RGB to CMYK which was their huge problem. I have never heard of a printer rejecting a vector based image. They crave these things because no matter the resolution or size, it will always print out beautifully. The printer doesn't know or care about what your picture means or represents. What the printer cares about is that they print exactly what you gave them. It should look exactly the same on the screen (apart from color because RGB - CMYK is not even sort of possible to do well). If you hand them a 8.5x11 piece of paper with your plot on it in a PDF form and you open that form in Adobe, they should easily print out exactly that image that you see on the screen. In all seriousness, if they cannot do that, you might try to find a new printer. It shouldn't matter what format the image is in. Vector based graphics are how printers print. It converts your bitmap into a PS image and the printer uses a modified PS file to print your image on the paper. This is why I am so incredibly confused by all of this. Not only that, Adobe makes all of the products that printers use. InDesign hooks up to the highest end HP machines you have ever seen and uses their own custom layout crap to send your document to the printer. Bitmaps should never be used in professional printing, ever. If they have a grievous conversion fault, it is on the printer to make whatever software they are using print whatever image you give them and have that image look the same on paper as it does in the document. That is their only job. Easier said than done but I don't buy that printers don't know how to convert or deal with vector based images. I actually finished up a massive job with a small printer about 3 months ago and have way more experience than I should with this. Their flattening tool didn't take to my document so I had to convert everything manually to CMYK to make sure that the colors and images printed correctly. Thankfully, image magic does vector based color transformations quite well. Their PDF - PNG transformation is horrible but a PDF (RGB) - PDF (CMYK) is actually quite good. It isn't perfect because that transformation cannot be done exactly, but it does do a decent job. I really don't mean to harp on this like I have been but really, it is the job of your printer to make whatever you gave them work and there should be no problem printing out vector images. ~Ben On Wed, Jul 9, 2014 at 11:25 AM, Helge Hafting helge.haft...@hist.no wrote: On 23. juni 2014 11:16, Christian W wrote: The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead. Too fine detail will be lost - that is obvious. The interesting part is how. If a single pixel contains some white and some black due to fine detail - what should happen? Black pixel? White? Gray pixel? (Gray might not be possible). And when many such pixels make up a region - will the whole region be white/black? Or a dithering pattern? Aliasing effects? Their press might do this reduction a bit different than your home printer, hence the warning about surprises. They are publishers, not experts in your field. So they might not understand your computed images. So they cannot tell a bad conversion form a good one. which is why they tell you to make bitmaps in the native resolution of their imager. They can then print exactly what they get, no surprises. You get full control of the conversion process, and can review each image. If some are bad, you can use different parameters or different software to process them. You don't want the first edition to print with some griveous conversion fault - and they don't want that either.
Re: Convert vector graphics to bitmap
On 23. juni 2014 11:16, Christian W wrote: The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead. Too fine detail will be lost - that is obvious. The interesting part is how. If a single pixel contains some white and some black due to fine detail - what should happen? Black pixel? White? Gray pixel? (Gray might not be possible). And when many such pixels make up a region - will the whole region be white/black? Or a dithering pattern? Aliasing effects? Their press might do this reduction a bit different than your home printer, hence the warning about surprises. They are publishers, not experts in your field. So they might not understand your computed images. So they cannot tell a bad conversion form a good one. which is why they tell you to make bitmaps in the native resolution of their imager. They can then print exactly what they get, no surprises. You get full control of the conversion process, and can review each image. If some are bad, you can use different parameters or different software to process them. You don't want the first edition to print with some griveous conversion fault - and they don't want that either.
Re: Convert vector graphics to bitmap
I still don't buy that. You send a printer a PDF. That is a vector graphic document. You send it to them in a PDF so it prints exactly what you give them. Yes, professional printers are different than home printers. They are far more complex and yes, I did have a problem with converting from RGB to CMYK which was their huge problem. I have never heard of a printer rejecting a vector based image. They crave these things because no matter the resolution or size, it will always print out beautifully. The printer doesn't know or care about what your picture means or represents. What the printer cares about is that they print exactly what you gave them. It should look exactly the same on the screen (apart from color because RGB - CMYK is not even sort of possible to do well). If you hand them a 8.5x11 piece of paper with your plot on it in a PDF form and you open that form in Adobe, they should easily print out exactly that image that you see on the screen. In all seriousness, if they cannot do that, you might try to find a new printer. It shouldn't matter what format the image is in. Vector based graphics are how printers print. It converts your bitmap into a PS image and the printer uses a modified PS file to print your image on the paper. This is why I am so incredibly confused by all of this. Not only that, Adobe makes all of the products that printers use. InDesign hooks up to the highest end HP machines you have ever seen and uses their own custom layout crap to send your document to the printer. Bitmaps should never be used in professional printing, ever. If they have a grievous conversion fault, it is on the printer to make whatever software they are using print whatever image you give them and have that image look the same on paper as it does in the document. That is their only job. Easier said than done but I don't buy that printers don't know how to convert or deal with vector based images. I actually finished up a massive job with a small printer about 3 months ago and have way more experience than I should with this. Their flattening tool didn't take to my document so I had to convert everything manually to CMYK to make sure that the colors and images printed correctly. Thankfully, image magic does vector based color transformations quite well. Their PDF - PNG transformation is horrible but a PDF (RGB) - PDF (CMYK) is actually quite good. It isn't perfect because that transformation cannot be done exactly, but it does do a decent job. I really don't mean to harp on this like I have been but really, it is the job of your printer to make whatever you gave them work and there should be no problem printing out vector images. ~Ben On Wed, Jul 9, 2014 at 11:25 AM, Helge Hafting helge.haft...@hist.no wrote: On 23. juni 2014 11:16, Christian W wrote: The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead. Too fine detail will be lost - that is obvious. The interesting part is how. If a single pixel contains some white and some black due to fine detail - what should happen? Black pixel? White? Gray pixel? (Gray might not be possible). And when many such pixels make up a region - will the whole region be white/black? Or a dithering pattern? Aliasing effects? Their press might do this reduction a bit different than your home printer, hence the warning about surprises. They are publishers, not experts in your field. So they might not understand your computed images. So they cannot tell a bad conversion form a good one. which is why they tell you to make bitmaps in the native resolution of their imager. They can then print exactly what they get, no surprises. You get full control of the conversion process, and can review each image. If some are bad, you can use different parameters or different software to process them. You don't want the first edition to print with some griveous conversion fault - and they don't want that either.
Re: Convert vector graphics to bitmap
On 23. juni 2014 11:16, Christian W wrote: The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead. Too fine detail will be lost - that is obvious. The interesting part is how. If a single pixel contains some white and some black due to fine detail - what should happen? Black pixel? White? Gray pixel? (Gray might not be possible). And when many such pixels make up a region - will the whole region be white/black? Or a dithering pattern? Aliasing effects? Their press might do this reduction a bit different than your home printer, hence the warning about surprises. They are publishers, not experts in your field. So they might not understand your computed images. So they cannot tell a "bad" conversion form a "good" one. which is why they tell you to make bitmaps in the native resolution of their imager. They can then print exactly what they get, no surprises. You get full control of the conversion process, and can review each image. If some are bad, you can use different parameters or different software to process them. You don't want the first edition to print with some griveous conversion fault - and they don't want that either.
Re: Convert vector graphics to bitmap
I still don't buy that. You send a printer a PDF. That is a vector graphic document. You send it to them in a PDF so it prints exactly what you give them. Yes, professional printers are different than home printers. They are far more complex and yes, I did have a problem with converting from RGB to CMYK which was their huge problem. I have never heard of a printer rejecting a vector based image. They crave these things because no matter the resolution or size, it will always print out beautifully. The printer doesn't know or care about what your picture means or represents. What the printer cares about is that they print exactly what you gave them. It should look exactly the same on the screen (apart from color because RGB -> CMYK is not even sort of possible to do well). If you hand them a 8.5x11 piece of paper with your plot on it in a PDF form and you open that form in Adobe, they should easily print out exactly that image that you see on the screen. In all seriousness, if they cannot do that, you might try to find a new printer. It shouldn't matter what format the image is in. Vector based graphics are how printers print. It converts your bitmap into a PS image and the printer uses a modified PS file to print your image on the paper. This is why I am so incredibly confused by all of this. Not only that, Adobe makes all of the products that printers use. InDesign hooks up to the highest end HP machines you have ever seen and uses their own custom layout crap to send your document to the printer. Bitmaps should never be used in professional printing, ever. If they have a grievous conversion fault, it is on the printer to make whatever software they are using print whatever image you give them and have that image look the same on paper as it does in the document. That is their only job. Easier said than done but I don't buy that printers don't know how to convert or deal with vector based images. I actually finished up a massive job with a small printer about 3 months ago and have way more experience than I should with this. Their flattening tool didn't take to my document so I had to convert everything manually to CMYK to make sure that the colors and images printed correctly. Thankfully, image magic does vector based color transformations quite well. Their PDF -> PNG transformation is horrible but a PDF (RGB) -> PDF (CMYK) is actually quite good. It isn't perfect because that transformation cannot be done exactly, but it does do a decent job. I really don't mean to harp on this like I have been but really, it is the job of your printer to make whatever you gave them work and there should be no problem printing out vector images. ~Ben On Wed, Jul 9, 2014 at 11:25 AM, Helge Haftingwrote: > On 23. juni 2014 11:16, Christian W wrote: > >> The document contains a larger number of images. As these are results from >> scientific computations, they contain a large number of details. This >> allows >> the user to zoom deep into the image when viewing the document on screen. >> However, in the printed version it is obviously not possible to resolve so >> many details. The publisher claims this may result in unexpected >> appearance >> of the images during the printing process. I am not sure about the >> technical >> reasons and differences of book printing to regular home printers, but he >> asked me to provide bitmap based graphics instead. >> > > Too fine detail will be lost - that is obvious. The interesting part is > how. If a single pixel contains some white and some black due to fine > detail - what should happen? Black pixel? White? Gray pixel? (Gray might > not be possible). And when many such pixels make up a region - will the > whole region be white/black? Or a dithering pattern? Aliasing effects? > > Their press might do this reduction a bit different than your home > printer, hence the warning about surprises. They are publishers, not > experts in your field. So they might not understand your computed images. > So they cannot tell a "bad" conversion form a "good" one. which is why they > tell you to make bitmaps in the native resolution of their imager. They can > then print exactly what they get, no surprises. You get full control of the > conversion process, and can review each image. If some are bad, you can use > different parameters or different software to process them. You don't want > the first edition to print with some griveous conversion fault - and they > don't want that either. > >
Re: Convert vector graphics to bitmap
The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead.
Re: Convert vector graphics to bitmap
The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead.
Re: Convert vector graphics to bitmap
The document contains a larger number of images. As these are results from scientific computations, they contain a large number of details. This allows the user to zoom deep into the image when viewing the document on screen. However, in the printed version it is obviously not possible to resolve so many details. The publisher claims this may result in unexpected appearance of the images during the printing process. I am not sure about the technical reasons and differences of book printing to regular home printers, but he asked me to provide bitmap based graphics instead.
Convert vector graphics to bitmap
Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document.
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang
Re: Convert vector graphics to bitmap
More to the point, why is a publisher unable to print a PDF? That seems incredibly suspicious as someone who has worked with printers. There are also lots of applications which will do this conversion. Inkscape and gimp come to mind. ~Ben On Sun, Jun 22, 2014 at 11:38 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself convert -density 600 in.eps out.png Wolfgang
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang p.S. if you want to convert many in a go, look at http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ where it says: Converting many files at once is where ImageMagick really shines. The |mogrify| command is probably the quickest option. For example, to convert the files image01.eps, image02.eps and image03.eps to png, just use the command |mogrify -format png image*.eps|. In one shot, it will create image01.png, image02.png and image03.png. Unfortunately, recent version of Imagemagick seem to be treating eps to png conversions oddly (see below) so mogrify isn't cutting it on my files. If you have similar trouble (and you're on Unix or Mac or Cygwin), you can just use a bit of Bash combined with the |convert| command to get around the problem like this: BASH: 1. for f in `ls *.eps`; do 2. convert -density 100 $f -flatten ${f%.*}.png; 3. done Wolfgang
Re: Convert vector graphics to bitmap
Make sure though that if you chose ImageMagic that you are getting results that you can live with. In many of my attempts to use it resulted in horrible outputs. I use something called Poppler http://superuser.com/questions/185880/how-to-convert-a-pdf-document-to-png BTW. If you search for convert pdf to png you can find dozens of answers. ~Ben On Sun, Jun 22, 2014 at 11:45 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang p.S. if you want to convert many in a go, look at http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ where it says: Converting many files at once is where ImageMagick really shines. The mogrify command is probably the quickest option. For example, to convert the files image01.eps, image02.eps and image03.eps to png, just use the command mogrify -format png image*.eps. In one shot, it will create image01.png, image02.png and image03.png. Unfortunately, recent version of Imagemagick seem to be treating eps to png conversions oddly (see below) so mogrify isn't cutting it on my files. If you have similar trouble (and you're on Unix or Mac or Cygwin), you can just use a bit of Bash combined with the convert command to get around the problem like this: BASH: 1. for f in `ls *.eps`; do 2. convert -density 100 $f -flatten ${f%.*}.png; 3. done Wolfgang
Re: Convert vector graphics to bitmap
Thank you both for your comments. Is there a way to do the conversion directly in Lyx, i.e. while lyx is generating the PDF output, not as a shell command? Lyx can convert many image formats on the fly - maybe this feature can be used to detect and convert EPS to PNG? That would be easier to handle than converting everything beforehand.
Re: Convert vector graphics to bitmap
To understand why that shouldn't happen you actually have to understand that you are specifically doing something which is both strange and backwards. The reason that EPS, PS, and PDF files work so well with Latex and Lyx is because PDFs are vector based graphics. Converting an EPS and a PS document to PDF should have a 1:1 lossless conversion, theoretically. There is an eps2pdf command which converts EPS and SVG files to PDF. There is also a way to include a PNG file into a PDF. Frankly, I am extremely confused by this thread. A PDF document is vector based. If you are handing them a PDF to print, they shouldn't have any issue printing a vector based document. If you are including an EPS within a PDF, the conversion happens on the backend to make the EPS into a PDF so it is very easily included within the document. PNG images are raster based and need to be converted into a vector to be included within a PDF, or at least that is what I have read. There are libraries which will do this such as graphicx. Note that the PNG is converted into a vector based system and then included within the PDF document or it is used natively somehow and then a vector image is the result (PDF). Does this make sense? Perhaps I am just missing something but printers should love vector based graphics. Mine does. ~Ben On Sun, Jun 22, 2014 at 4:37 PM, Christian W windi...@igpm.rwth-aachen.de wrote: Thank you both for your comments. Is there a way to do the conversion directly in Lyx, i.e. while lyx is generating the PDF output, not as a shell command? Lyx can convert many image formats on the fly - maybe this feature can be used to detect and convert EPS to PNG? That would be easier to handle than converting everything beforehand.
Convert vector graphics to bitmap
Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document.
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang
Re: Convert vector graphics to bitmap
More to the point, why is a publisher unable to print a PDF? That seems incredibly suspicious as someone who has worked with printers. There are also lots of applications which will do this conversion. Inkscape and gimp come to mind. ~Ben On Sun, Jun 22, 2014 at 11:38 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself convert -density 600 in.eps out.png Wolfgang
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang p.S. if you want to convert many in a go, look at http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ where it says: Converting many files at once is where ImageMagick really shines. The |mogrify| command is probably the quickest option. For example, to convert the files image01.eps, image02.eps and image03.eps to png, just use the command |mogrify -format png image*.eps|. In one shot, it will create image01.png, image02.png and image03.png. Unfortunately, recent version of Imagemagick seem to be treating eps to png conversions oddly (see below) so mogrify isn't cutting it on my files. If you have similar trouble (and you're on Unix or Mac or Cygwin), you can just use a bit of Bash combined with the |convert| command to get around the problem like this: BASH: 1. for f in `ls *.eps`; do 2. convert -density 100 $f -flatten ${f%.*}.png; 3. done Wolfgang
Re: Convert vector graphics to bitmap
Make sure though that if you chose ImageMagic that you are getting results that you can live with. In many of my attempts to use it resulted in horrible outputs. I use something called Poppler http://superuser.com/questions/185880/how-to-convert-a-pdf-document-to-png BTW. If you search for convert pdf to png you can find dozens of answers. ~Ben On Sun, Jun 22, 2014 at 11:45 AM, Wolfgang Engelmann engelm...@uni-tuebingen.de wrote: Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang p.S. if you want to convert many in a go, look at http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ where it says: Converting many files at once is where ImageMagick really shines. The mogrify command is probably the quickest option. For example, to convert the files image01.eps, image02.eps and image03.eps to png, just use the command mogrify -format png image*.eps. In one shot, it will create image01.png, image02.png and image03.png. Unfortunately, recent version of Imagemagick seem to be treating eps to png conversions oddly (see below) so mogrify isn't cutting it on my files. If you have similar trouble (and you're on Unix or Mac or Cygwin), you can just use a bit of Bash combined with the convert command to get around the problem like this: BASH: 1. for f in `ls *.eps`; do 2. convert -density 100 $f -flatten ${f%.*}.png; 3. done Wolfgang
Re: Convert vector graphics to bitmap
Thank you both for your comments. Is there a way to do the conversion directly in Lyx, i.e. while lyx is generating the PDF output, not as a shell command? Lyx can convert many image formats on the fly - maybe this feature can be used to detect and convert EPS to PNG? That would be easier to handle than converting everything beforehand.
Re: Convert vector graphics to bitmap
To understand why that shouldn't happen you actually have to understand that you are specifically doing something which is both strange and backwards. The reason that EPS, PS, and PDF files work so well with Latex and Lyx is because PDFs are vector based graphics. Converting an EPS and a PS document to PDF should have a 1:1 lossless conversion, theoretically. There is an eps2pdf command which converts EPS and SVG files to PDF. There is also a way to include a PNG file into a PDF. Frankly, I am extremely confused by this thread. A PDF document is vector based. If you are handing them a PDF to print, they shouldn't have any issue printing a vector based document. If you are including an EPS within a PDF, the conversion happens on the backend to make the EPS into a PDF so it is very easily included within the document. PNG images are raster based and need to be converted into a vector to be included within a PDF, or at least that is what I have read. There are libraries which will do this such as graphicx. Note that the PNG is converted into a vector based system and then included within the PDF document or it is used natively somehow and then a vector image is the result (PDF). Does this make sense? Perhaps I am just missing something but printers should love vector based graphics. Mine does. ~Ben On Sun, Jun 22, 2014 at 4:37 PM, Christian W windi...@igpm.rwth-aachen.de wrote: Thank you both for your comments. Is there a way to do the conversion directly in Lyx, i.e. while lyx is generating the PDF output, not as a shell command? Lyx can convert many image formats on the fly - maybe this feature can be used to detect and convert EPS to PNG? That would be easier to handle than converting everything beforehand.
Convert vector graphics to bitmap
Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document.
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang
Re: Convert vector graphics to bitmap
More to the point, why is a publisher unable to print a PDF? That seems incredibly suspicious as someone who has worked with printers. There are also lots of applications which will do this conversion. Inkscape and gimp come to mind. ~Ben On Sun, Jun 22, 2014 at 11:38 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > > Am 22.06.2014 17:07, schrieb Christian W: > > Is there a way in Lyx to automatically convert all eps and pdf vector > graphics to PNG bitmap format? For printing, my publisher asked me to > provide a PDF file without vector graphics as this might cause some > problems. Instead they asked me to convert all vector graphics to PNG format > with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final > pdf document. > > > Strange, that a publisher is apparently nowadays not able to do this > conversion himself > convert -density 600 in.eps out.png > Wolfgang >
Re: Convert vector graphics to bitmap
Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: Am 22.06.2014 17:07, schrieb Christian W: Is there a way in Lyx to automatically convert all eps and pdf vector graphics to PNG bitmap format? For printing, my publisher asked me to provide a PDF file without vector graphics as this might cause some problems. Instead they asked me to convert all vector graphics to PNG format with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final pdf document. Strange, that a publisher is apparently nowadays not able to do this conversion himself |convert -density 600 in.eps out.png |Wolfgang p.S. if you want to convert many in a go, look at http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ where it says: Converting many files at once is where ImageMagick really shines. The |mogrify| command is probably the quickest option. For example, to convert the files image01.eps, image02.eps and image03.eps to png, just use the command |mogrify -format png image*.eps|. In one shot, it will create image01.png, image02.png and image03.png. Unfortunately, recent version of Imagemagick seem to be treating eps to png conversions oddly (see below) so mogrify isn't cutting it on my files. If you have similar trouble (and you're on Unix or Mac or Cygwin), you can just use a bit of Bash combined with the |convert| command to get around the problem like this: BASH: 1. for f in `ls *.eps`; do 2. convert -density 100 $f -flatten ${f%.*}.png; 3. done Wolfgang
Re: Convert vector graphics to bitmap
Make sure though that if you chose ImageMagic that you are getting results that you can live with. In many of my attempts to use it resulted in horrible outputs. I use something called Poppler http://superuser.com/questions/185880/how-to-convert-a-pdf-document-to-png BTW. If you search for "convert pdf to png" you can find dozens of answers. ~Ben On Sun, Jun 22, 2014 at 11:45 AM, Wolfgang Engelmann < engelm...@uni-tuebingen.de> wrote: > > Am 22.06.2014 17:38, schrieb Wolfgang Engelmann: > > > Am 22.06.2014 17:07, schrieb Christian W: > > Is there a way in Lyx to automatically convert all eps and pdf vector > graphics to PNG bitmap format? For printing, my publisher asked me to > provide a PDF file without vector graphics as this might cause some > problems. Instead they asked me to convert all vector graphics to PNG > format > with 600 dpi resolution. I am using pdflatex in Lyx to genreate the final > pdf document. > > Strange, that a publisher is apparently nowadays not able to do this > conversion himself > |convert -density 600 in.eps out.png > |Wolfgang > > p.S. > if you want to convert many in a go, look at > http://scott.sherrillmix.com/blog/programmer/converting-eps-to-png-easily/ > > where it says: > Converting many files at once is where ImageMagick really shines. The > mogrify command is probably the quickest option. For example, to convert > the files image01.eps, image02.eps and image03.eps to png, just use the > command mogrify -format png image*.eps. In one shot, it will create > image01.png, image02.png and image03.png. > > Unfortunately, recent version of Imagemagick seem to be treating eps to > png conversions oddly (see below) so mogrify isn't cutting it on my files. > If you have similar trouble (and you're on Unix or Mac or Cygwin), you can > just use a bit of Bash combined with the convert command to get around > the problem like this: > BASH: > >1. for f in `ls *.eps`; do > 2. convert -density 100 $f -flatten ${f%.*}.png; > 3. done > > Wolfgang >
Re: Convert vector graphics to bitmap
Thank you both for your comments. Is there a way to do the conversion directly in Lyx, i.e. while lyx is generating the PDF output, not as a shell command? Lyx can convert many image formats on the fly - maybe this feature can be used to detect and convert EPS to PNG? That would be easier to handle than converting everything beforehand.
Re: Convert vector graphics to bitmap
To understand why that shouldn't happen you actually have to understand that you are specifically doing something which is both strange and backwards. The reason that EPS, PS, and PDF files work so well with Latex and Lyx is because PDFs are vector based graphics. Converting an EPS and a PS document to PDF should have a 1:1 lossless conversion, theoretically. There is an eps2pdf command which converts EPS and SVG files to PDF. There is also a way to include a PNG file into a PDF. Frankly, I am extremely confused by this thread. A PDF document is vector based. If you are handing them a PDF to print, they shouldn't have any issue printing a vector based document. If you are including an EPS within a PDF, the conversion happens on the backend to make the EPS into a PDF so it is very easily included within the document. PNG images are raster based and need to be converted into a vector to be included within a PDF, or at least that is what I have read. There are libraries which will do this such as graphicx. Note that the PNG is converted into a vector based system and then included within the PDF document or it is used natively somehow and then a vector image is the result (PDF). Does this make sense? Perhaps I am just missing something but printers should love vector based graphics. Mine does. ~Ben On Sun, Jun 22, 2014 at 4:37 PM, Christian Wwrote: > Thank you both for your comments. Is there a way to do the conversion > directly in Lyx, i.e. while lyx is generating the PDF output, not as a > shell > command? Lyx can convert many image formats on the fly - maybe this feature > can be used to detect and convert EPS to PNG? That would be easier to > handle > than converting everything beforehand. > >