Google seems to be optimizing images to preserve bandwidth. The treatment whereby the color was reduced to 5 bits, which could encode 32 colors or 32 shades of gray or 16 of each, depending on the image, has been abandoned. I noticed the change a few days ago and noted it on the conversation [1]. From a single JPEG data stream, multiple versions of an image may be decoded. These different versions form progressions along four degrees of freedom: sampling resolution, color depth , band, and location.
For example, with a resolution progression, a thumbnail version of the image may be decoded from the data, followed by a sequence of other versions of the image, each with approximately four times as many samples twice the width times twice the height as the previous one.
The last version is the full-resolution image. Google Docs viewer might be displaying only first version of the image with lower resolution or lower color depth thus producing "awful" output. Perhaps the attached pair of images will help towards clarifying what is happening with color in images that are rendered through the Google Docs pdf viewer. Then I made screenshots. The color resolution in the Docs PDF Viewer version is really awful; it looks like 64 colors at most.
Maybe someone else is able to recognize this kind of rendering and identify the problem better. This is related to compression and it's something that you can't change in the default view of Google Docs Viewer. The simple solution is to upload the PDF and just serve it from the site in an iFrame. Here is an example:. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 6 months ago. Active 3 years ago. Viewed 24k times. I've taken screenshots at the same zoom level in Google Docs viewer and Foxit Reader.
Here's an image for comparison: It's awful! Improve this question. Bobrovsky 13k 19 19 gold badges 74 74 silver badges bronze badges. Turkeyphant Turkeyphant 1 1 gold badge 1 1 silver badge 12 12 bronze badges. I've still been unable to find an image based PDF that will display properly: docs. Add a comment. Active Oldest Votes. Improve this answer. All 3 images in the PDF? When I click on the second link I still only see the first 2 images and a blank third page - I'll try resetting a few things.
Thanks for the feedback : — Curious. Can confirm. Add a comment. Active Oldest Votes. Check to make sure the image isn't clipping into the margin. Improve this answer. Jordan Huffaker Jordan Huffaker 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE.
Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Related
0コメント