thumbnails

Creating JPG thumbnails from PDF causes problems with new version of ImageMagick

有些话、适合烂在心里 提交于 2019-12-04 12:56:26
I'm using Imagemagick to create thumbnails images of pdf files with this command: convert 'input.pdf[0]' -resize "100x140>" -colorspace 'rgb' 'output.jpg' 2>/dev/null Some of the PDFs are in CMYK color space, hence the specification of the expected -colorspace as rgb. This was working fine until I updated to the latest versions of Imagemagick(6.6.7-1) and ghostscript(9.01_0), now it looks like the conversion to rgb isn't working any longer, here is an example output: (The background should be white, not black) It seems though that the problem comes from the -resize option because if I remove

How to get `thumbnails document` like google doc?

≡放荡痞女 提交于 2019-12-04 12:56:08
How to get thumbs document (doc, docx, pdf, pptx, ppt,.....)? May be use C#, php, ..... Please help me! Thanks you very much! Baba This has been asked before ... please see Live Thumbnails/Large Image for some examples It only capture web sites but its the same for every other document types .... all you need to do is convert (doc, docx, pptx, ppt,.....) to pdf or HTML or image ... PDF is easier to work with but some online tools can also convert doc to image directly .. When you have it pdf you can easy convert it to jpg then create a thumbnails form jpg See more tools you can use See http:/

Linux-based MS Office thumbnail generation

我的未来我决定 提交于 2019-12-04 12:33:11
I've been taken onboard to work on a PHP-based web application. One part of the application generates thumbnail images for MS Office documents on demand, and it uses MS Office + the VeryPDF docprint utility to do this. Because of this one requirement, the system is running on Windows Server 2003 + IIS. I would prefer to have the system running on a Linux server, rather than MS, as I have far more experience in administering Linux systems than Windows and we have no other in-house technical staff. Does anyone know a way to handle the document conversion using native Linux software? I would love

PHP Thumbnail Class

拟墨画扇 提交于 2019-12-04 12:26:19
问题 I am looking for a solid PHP thumbnail generating class. Does anyone know any good ones that are open-source? I could write one, but I really don't want to. The one thing I hate most about PHP is manipulating images with GD and Imagemagick. Does anyone have any suggestions? 回答1: Use phpThumb(). Its a script that internally uses GD library and/or ImageMagick (whichever is available and whichever it thinks is best for the job) to perform basic image manipulation tasks, including thumbnail

Youtube api get latest upload thumbnail

試著忘記壹切 提交于 2019-12-04 12:25:01
I am looking to returning the video-thumbnail of the latest uploaded video from my channel, and display it on my website. Anyone know how I can do a minimal connection trough api and get only the thumbnail? Thanks! -Tom REVISED!! Using Cakephp, this is how I did it (thanks dave for suggestions using zend); controller: App::import('Xml'); $channel = 'Blanktv'; $url = 'https://gdata.youtube.com/feeds/api/users/'.$channel.'/uploads?v=2&max-results=1&orderby=published'; $parsed_xml =& new XML($url); $parsed_xml = Set::reverse($parsed_xml); //debug($parsed_xml); $this->set('parsed_xml',$parsed_xml)

Get YouTube or Vimeo Thumbnails in one shot with jQuery

自古美人都是妖i 提交于 2019-12-04 09:49:57
问题 I'm trying to put YouTube thumbnail and Vimeo thumbnail together in the same script, but its not really easy for me because I'm a new to jQuery. I would to ask if somebody could take a look to this jQuery script that works fine in any browser: http://jquery-howto.blogspot.com/2009/02/how-to-get-youtube-video-screenshot.html I've also seen the question: Get img thumbnails from Vimeo?, but there's nothing about how to do it with jQuery. I think it should be very easy to make for who already

Efficient thumbnail creation in iPhone

こ雲淡風輕ζ 提交于 2019-12-04 09:26:23
What's the most efficient way to create a thumbnail from an arbitrary web image in iPhone? the comparison of two method for fast creating thumbnail from image kindly see this link for detail http://www.cocoaintheshell.com/2011/01/uiimage-scaling-imageio/ or http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/ for future , just copy pasting code from first one First method, using UIKit void)buildGallery { for (NSUInteger i = 0; i < kMaxPictures; i++) { NSInteger imgTag = i + 1; NYXPictureView* v = [[NYXPictureView alloc] initWithFrame:(CGRect){.origin.x = x, .origin.y = y,

Coerce Windows to show a thumbnail for my custom file type

五迷三道 提交于 2019-12-04 08:30:41
问题 I want to use the windows OpenFileDialog class in C# to browse files for my application. I would then like the files to show up with previews in Windows' "thumbnails" view. Is there a simple way to make this happen? I'm thinking there should be a way to encode the files so that Windows simply reads and displays the thumbnail information, even though it's an unsupported file type? I know Windows Vista has a different interface (IThumbnailProvider as opposed to IExtractImage) than Windows XP,

What's the best jQuery “click a thumbnail and change the main image” module?

旧时模样 提交于 2019-12-04 08:09:04
问题 Here's what I have (all generated dynamically, if that makes a difference) : A list of images A caption for each image A thumbnail for each image The page should load with one full-size image and all the thumbnails. When a user clicks a thumbnail, the full-size image shows that new image with its caption. If they click another thumbnail, the picture (and caption) change again. It's not very complex. I hacked together a solution a few months ago, but I need to do it again and I'm looking at

Android recent app thumbnail

感情迁移 提交于 2019-12-04 07:34:20
My app appears incorrectly in most recent apps list on ICS and JB devices. The thumbnail is cut, distorted, sometimes a screenshot of completely different app appears for my app. Some activities may not be shown though they are not marked as exclude from recent. What can be wrong and what should I do to fix the issue? 来源: https://stackoverflow.com/questions/12878278/android-recent-app-thumbnail