Page thumbnails with pdfbox - thumbnails

I'm trying to produce thumbnails for pages for (larger, > 50 pages) pdf documents using pdfbox. I tried using renderer.renderImage(pageNumber) and then scale the image. I also tried using a scale parameter and renderImageWithDPI. Unfortunately, all these attempts take more than 1 second per page image, which makes it more than a minute for all thumbnails. When opening the document with AdobeReader or PDF XChange Editor, the thumbnails seem to appear almost instantaneously. Is there a chance to get the thumbnails more efficiently using pdfbox?

Related

Will full size slideshow links separate from thumbnails preload?

I am using Fancybox. In a slideshow where the thumbnails are not reduced from larger images, and are linked to separate full-size images (that will appear in the slideshow when thumbnails are clicked), will the full-size images also pre-load with the webpage? Or only load when the slideshow is activated? My slideshows have many images, and I don't want them to load until necessary. Thanks in advance for advice!
First, you can use developer tools to easily check network activity.
The script fully loads current and previous/next slides after it is activated. Thumbnails are, hoverer, all loaded at once. This means, that if you have extremely large quantities of images, the script will load only max 3 of them and it would be better to disable thumbnails.

How can I acheive a full-sized image in open graph?

I am using the facebook plugin on my wordpress website. My posts are image-only. I am able get the open graph functionality to work, however the image is either a tiny thumbnail with a useless excerpt box beside it, or full-sized with half of it cut of because of the useless caption box.
Now, I say useless, but I wouldn't mind having only my url presented below the image if possible, but without all the extra space. It looks terrible. Also, My image posts do not have titles so in the excerpts box the only title option without a separator for the "collection" theme I am using is sitenameonly....which leave my
sitename
site url
< .........huge extra excerpt space..............................................................................................................................................................................................................................................................................................................................................................>
I have looked elsewhere, in fact all over but can't find information to:
make images full-sized (as if they were posted directly to facebook)
Remove extra space in the excerpt box, leaving only the url
(or remove the box entirely--leaving a full-sized image)
thanks so much in advance
As long as your Wordpress plugin assigns a proper image to each post using the og:image tag and the conditions stated below (emphasis added) then you should be able to get full size posts.
We've increased the size of images in link page posts by 4x on mobile
and 8x on desktop to help you drive better fan engagement. As part of
this change, we've also made the aspect ratios for images consistent
across mobile and desktop. We recommend the following steps to
optimize your images for this new format:
Use images that are 1200 x 630px or greater for the best display on high-resolution devices. At the minimum you should use images that are
600 x 315px to display link page posts with larger images.
Use images that have an aspect ratio of 1.91:1. Try to keep your images as close to this aspect ratio as possible to avoid any cropping
in News Feed.
Use the og:image tag to choose the image that you want to share. If you don't use the og:image tag, users can choose the image they want
to post, giving them a chance to select an image that is poor quality.
Source: Larger Images for Link Page Posts

What is the pixel size (wide) on the facebook interface before showing page ads and my message option

I've been looking for the pixel width of the facebook homepage, excluding the page ads and your profile options, such as MESSAGES and News feed.
I have tried searching for it, but my answer is not found. Please let me know if you have the answer. (And if you have facebook on max size on your browser, if that changes anything, but I mean like the full width of the full size web-browser.)
Thanks.
If you want to know things like this, and you know your way around a graphics editing program, make a screen shot of the FB page, load it into your editor and measure in there.
These programs e.g. all show the size of the bounding rectangle if you make a rectangular selection of the item you want to measure.
This does not work if the objects in the web page size with your windows browser size, but even then you can often calculate a size by e.g. subtracting sizes of fixed elements from your browser window size.

take long time loading image in firefox using very simple image gallery plugin for joomla 1.5

I have some problem using very simple image gallery plugin for joomla 1.5.It takes long time to load images when click on the thumbnail images.I have enabled the use javascript features.
How can I reduce the loading time of the big images when click on the thumbnail images?I have to enabled the "use javascript" option as that is the requirement.
hope this link will help you:
http://extensions.joomla.org/extensions/photos-a-images/photo-gallery/11426
Use this Photo Gallery Plugin which is very effective,
on the other hand you talked about to reduce the loading time, i don't know if that possible but
if you can reduce the size of the image then it will take less time in loading.
if you know a little bit about photoshop the is easy to follow these steps:
Open the Image
Resize According to you to press Ctrl + t button
After resizing press Alt+Ctrl+Shift+ s
A Window appear and the right side you got the options to manupulate the image in different format like .jpg, .gif etc.
Choose .jpg and set the value 60 in 'Quality' box instead of 100.

how to watermark a rendered PDF (on context) without repeating the image

I'm rendering a PDF file on my iPad using a graphics PDF context. The PDFs vary in size but may be up to 90 pages. I need a background image on each page but if I simply draw it the PDF file size will be way larger. Is there a way to kinda only add it once and 'share' it somehow across pages?
Thanks
The PDF format specification enables you to re-use objects "by reference". You can re-use any object multiple times that is defined only once. Usually that happens with fonts, logos, background images, watermarks, ICC profiles, ....
I did a test where I repeated a background image behind each PDF page. Surprisingly, the file size increased by a single and constant amount, regardless of the number of pages with repeated backgrounds.
The verdict: The drawing to PDF context libraries are smarter than you might think.