# [texworks] JPEG rendering problem

Jonathan Kew jonathan at jfkew.plus.com
Tue Jan 27 15:02:06 CET 2009

On 27 Jan 2009, at 13:42, Alain Delmotte wrote:

> Hi!
>
> I retested with the different versions I have (working under Windows
> XP):
> r132, r161 and r238 give a ping background for the images in the
> preview,
> r252 (which I compiled following the instructions of Stefan) doesn't.

I believe this is because you are using a different (newer) version of
the poppler library with your self-compiled version.

JK

>
>
> *But* the background is only for .jpeg images, a .png will not have
> the background in the different releases.
>
> This background appears only within TeXworks and not in a viewer
> (Adobe Reader, PDFXChange tested) as it shouldn't because the
> picture has no background (well perhaps a white one for the graph).
> In my point of view there should not be a background, unless one
> finds some use (size of the area used by the picture?) for it in
> developing a document.
>
> Herb Sculz:
> > Hmmmm... Opening the pdf file produced by compiling the test file
> shows
> > Black and the correct background color in both Preview (& TeXShop)
> and
> > Adobe Reader. But it shows the distorted colors in TeXWorks (last
> released binary).
>
> What is the "correct background"?
> I think the background should be white or none (the paper behind);
> the picture files themself do not have a background colour and there
> are no instructions to get a background in the file received:
> \begin{document}
>
> \centering
>
> \includegraphics[width=5cm]{lines-part} \\[\bigskipamount]
>
> \includegraphics[width=10cm]{D62A60Z144}
>
> \end{document}
>
>
> Alain
>
> Jonathan Kew a écrit :
>> I believe this is an issue of the poppler library version; the
>> problem exists with the version in the "libraries" download but has
>> been fixed in more recent poppler source. So a library update is
>> needed.
>>
>> JK
>>
>> On 26 Jan 2009, at 17:47, Herbert Schulz wrote:
>>
>>>
>>> On Jan 26, 2009, at 10:44 AM, Alain Delmotte wrote:
>>>
>>>> Hi,
>>>>
>>>> Testing with the files in the archive it is normal to get the
>>>> TeXworks result.
>>>> I got exactly the same under Windows with r252.
>>>> In fact the two pictures you sent have the colours seen with
>>>> TeXworks; the TeXshop result is apparently not created with the
>>>> sent .jpeg files.
>>>> Try to open the .jpeg files with a viewer.
>>>>
>>>> Alain
>>>>
>>>
>>>
>>> Howdy,
>>>
>>> Hmmmm... Opening the pdf file produced by compiling the test file
>>> shows Black and the correct background color in both Preview (&
>>> TeXShop) and Adobe Reader. But it shows the distorted colors in
>>> TeXWorks (last released binary).
>>>
>>> Good Luck,
>>>
>>> Herb Schulz
>>> (herbs at wideopenwest dot com)
>>>
>>>
>>>
>>
>>
>