KindleBoards logo DecalGirl Kindle skins  
KB Book of the Day
Stolen Justice
by DJ Gross

$2.99
Kindle Edition published 2011-05-09
Bestseller ranking: 45442

Product Description
"Simply can't think of words that are superlative enough! I was superglued to my Kindle for two days...The balance between the suspense-filled action and romance is spot on." The Romance Reviews (5 Stars, Top Pick for August, 2011 Nominee for Best Romantic Suspense)

"One of the best books I've read this year!" Romance Junkies (5 Ribbons)

"Wow! Loved this book from start to finish. For anyone who enjoys Romantic Suspense - this is a must read." The Book Pimp Blogs (A-)

"Stolen Justice immediately grabs the reader and plunges them into conflict and intrigue...a spell-binding story that is not to be missed." Coffee Time Romance and More (5 Cups, Reviewer's Choice Award)

"I ended up falling head first, deep into a book that was full to the brim with violence, scandal, emotion...DJ Gross made it so you just had absolutely no idea what would happen next!" Shameless Romance Reviews


He&#...
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 06:55:36 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Screen-saver generator  (Read 3575 times)
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« on: November 16, 2009, 12:42:12 AM »

I whipped up a PHP script for creating a grayscale 600x800 pixel JPEG image from any JPEG image file. (It may fail with really large images, so consider yourself warned.)

http://charles-reace.com/kindle_ss.php http://charles-reace.com/kindle_screensaver.php

It will resize and crop the image to be 600 x 800 pixels. In order to achieve that 3x4 aspect ratio, it lops off equal amounts from both sides if it's wider than that ratio, or else from top and bottom. Therefore if the important part of the image is not centered, you might not like the result. But hey, it's a quick and dirty method if you don't want to mess around with PhotoShop, The GIMP, or other image editing programs. Smiley

Enjoy.

PS: The image you upload is not stored on the server, so you need not worry about any photos being re-used, sold, used as blackmail material, etc.
« Last Edit: November 16, 2009, 09:00:14 PM by NogDog » Logged

911jason
Status: A A Milne
******
Offline Offline

Simi Valley, CA
Posts: 4376



View Profile WWW
« Reply #1 on: November 16, 2009, 05:42:49 AM »

How cool is that Nog, I'm sure many users will find this very helpful! =)
Logged
Betsy the Quilter
Woman in Charge
Global Moderator
Status: Shakespeare
*****
Online Online

Gender: Female
Alexandria, VA
Posts: 30799


I'm here to help. Really.


View Profile WWW
« Reply #2 on: November 16, 2009, 09:17:57 AM »

This is very cool.  I've been playing with it, large files (2.3 MB, for one I tried) aren't recognized.  But the smaller ones do well.  I'm heading out but I'm eager to come back and play with it.

Betsy
Logged

Agent 72
Proud owner of Eleanor the K1,Scout the K-Mini, Firefly the Fire and Buffy the K-Touch
Website: Betsy True Designs, Alexandria, VA               Miss you, Dona!

      NEW! -- Kindle Touch For Dummies -- NEW!

"The future belongs to those who believe in the beauty of their dreams." -Eleanor Roosevelt
"Until I feared I would lose it, I never loved to read. One does not love breathing." -Scout in To Kill a Mockingbird
"Oh come on! Stake through the heart. A little sunlight. It's like falling off a log" -Buffy, the Vampire Slayer
scott_audio
Status: Arthur Conan Doyle
****
Offline Offline

Gender: Male
WV - USA
Posts: 655



View Profile
« Reply #3 on: November 16, 2009, 10:34:27 AM »

Very cool indeed, eliminates the need to learn a graphics program and its fast
Logged

Seldom, very seldom, does complete truth belong to any human disclosure; seldom can it happen that something is not a little disguised, or a little mistaken.  - Jane Austen
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #4 on: November 16, 2009, 11:40:34 AM »

I think there may be a bug in my resizing and/or cropping algorithm, as some images are coming up with blank areas on the bottom and/or right. I'll have to do some reviewing and testing tonight -- probably a stupid math error. I did find a somewhat better algorithm form converting the colors to gray scale, or at least it seems to give a bit more contrast.
Logged

Betsy the Quilter
Woman in Charge
Global Moderator
Status: Shakespeare
*****
Online Online

Gender: Female
Alexandria, VA
Posts: 30799


I'm here to help. Really.


View Profile WWW
« Reply #5 on: November 16, 2009, 12:20:49 PM »

The only image I tried that came out like that (so far) was less than 600x800.  I'll let you know if I find any more.  Can you do one that does the same for DX images? (Not meaning to be greedy--this is great!)

Betsy
Logged

Agent 72
Proud owner of Eleanor the K1,Scout the K-Mini, Firefly the Fire and Buffy the K-Touch
Website: Betsy True Designs, Alexandria, VA               Miss you, Dona!

      NEW! -- Kindle Touch For Dummies -- NEW!

"The future belongs to those who believe in the beauty of their dreams." -Eleanor Roosevelt
"Until I feared I would lose it, I never loved to read. One does not love breathing." -Scout in To Kill a Mockingbird
"Oh come on! Stake through the heart. A little sunlight. It's like falling off a log" -Buffy, the Vampire Slayer
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #6 on: November 16, 2009, 01:07:49 PM »

The only image I tried that came out like that (so far) was less than 600x800.  I'll let you know if I find any more.

Yeah, that's pretty much what I think I was seeing, which makes me wonder if the inverse is true on larger images causing it to crop too much.

Quote
Can you do one that does the same for DX images? (Not meaning to be greedy--this is great!)

Betsy

Should be fairly simple for the DX version: I'll just add a radio button pair on the form to select the desired size, then change the base width/height values based on that selection.
Logged

nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #7 on: November 16, 2009, 05:06:01 PM »

I think I got the scaling/cropping issue fixed, so now it's off to DX support....
Logged

Jaasy
Status: Scheherazade
*****
Online Online

Gender: Female
Southern Cali
Posts: 1268



View Profile
« Reply #8 on: November 16, 2009, 05:17:50 PM »

Very nice
Logged
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #9 on: November 16, 2009, 05:29:13 PM »

DX option added. Smiley
Logged

nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #10 on: November 16, 2009, 08:50:16 PM »

I changed the link to http://charles-reace.com/kindle_screensaver.php, but the original link will automatically redirect to the new one. Also added some navigation links and a couple adverts (you never know). I'll be leaving it alone now unless anyone finds any bugs that need extermination.
Logged

Pea
Status: Dr. Seuss
*
Offline Offline

Gender: Female
Maui Hawaii
Posts: 37



View Profile
« Reply #11 on: November 16, 2009, 09:54:32 PM »

You are fabulous! Thanks so very much
Logged
mlewis78
Status: Edgar Allan Poe
*******
Online Online

Gender: Female
New York, NY
Posts: 5036


Member #3406


View Profile
« Reply #12 on: November 16, 2009, 10:35:50 PM »

I haven't managed to get an image yet.  Is there a maximum file size or dimensions of the file for this to work?  I was trying it with the K2 size screensaver. 

Thanks for putting this up, Nog Dog.
Logged






New York, NY
Flutist, Legal Services Professional
Readers:  K4, K3, Kindle DX (US), Sony PRS-350, B&N Nook STR and Bookeen Cybook Opus
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #13 on: November 17, 2009, 12:02:11 AM »

It should probably reject any file over 2MB. There could also be a potential with memory maxing out for large images in terms of pixel width/height, due to the way the PHP image functions work. I tried a 1000x800 image file that was about 1.5MB in size and it worked OK, though it probably took about 45 seconds or so before the download pop-up appeared.

I'll have to check the host settings tomorrow to see what my max memory size is, and I may then need to add some validation on the uploaded image's dimensions to prevent out-of-memory errors, which can be difficult to trap in a user-friendly manner.
Logged

nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #14 on: November 17, 2009, 08:32:18 PM »

Added some validation to reject any uploaded image with more than 3,000,000 pixels (e.g. a 2000 X 1500 pixel image) in order to avoid using too much memory on the server. Also tweaked the user interface a bit including some more useful error messages.
Logged

mlewis78
Status: Edgar Allan Poe
*******
Online Online

Gender: Female
New York, NY
Posts: 5036


Member #3406


View Profile
« Reply #15 on: November 17, 2009, 08:42:58 PM »

Thanks.  Now I know that my images were too big, since it tells me so.
Logged






New York, NY
Flutist, Legal Services Professional
Readers:  K4, K3, Kindle DX (US), Sony PRS-350, B&N Nook STR and Bookeen Cybook Opus
nogdog~6op6ou
Status: Edgar Allan Poe
*******
Online Online

Gender: Male
Ankh-Morpork
Posts: 7182


Noggin (1998-2011), this man's best friend


View Profile WWW
« Reply #16 on: November 17, 2009, 09:08:22 PM »

Ran your avatar image through it, and it turned out pretty good. Smiley

Logged

BTackitt
Status: Emily Dickinson
*******
Offline Offline

Texas, USA
Posts: 7962



View Profile
« Reply #17 on: December 27, 2009, 05:54:36 PM »

giving this thread a bump so our new members can find it easily and make their own Screensavers if they wish.
although I and others will still happily help if asked.
Logged

“If man has no tea in him, he is incapable of understanding truth and beauty." ~Japanese Proverb



Screensaver Images: http://s684.photobucket.com/home/B_Tackitt/index
Moosh
Status: Lewis Carroll
**
Offline Offline

Gender: Female
Western Australia
Posts: 148



View Profile
« Reply #18 on: December 29, 2009, 05:11:53 AM »

Thanks to this and the screensaver hack I now have my Chihuahua, Moose, as my screensaver! Love it. Cheesy


« Last Edit: December 29, 2009, 05:13:29 AM by Moosh » Logged
Gwennie
Status: Jane Austen
***
Offline Offline

Gender: Female
Sunny So. CA
Posts: 371



View Profile
« Reply #19 on: June 17, 2010, 08:29:27 AM »

bumpage because this is so great.

I find with really large files, I go into Photoshop Elements and change them to gray scale, and maybe auto-sharpen too, and that usually gets their size down. 

Thanks for this!  Smiley
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Use our Link-Maker to include Amazon links (pictures or text) in your post!

New! Browse Kindle skins and post images in your posts: DecalGirl | GelaSkins

           


    KindleBoards is an independent resource for people who own or have interest in Kindle - Amazon's family of wireless reading devices, tablets, and content.    
KindleBoards.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Apart from its participation in the Associates Program, KindleBoards.com is not affiliated with Amazon or Kindle in any other way. Amazon, Kindle and the Amazon and Kindle logos are trademarks of Amazon.com, Inc. or its affiliates.
(c) 2007 - 2012 KindleBoards. All Rights Reserved. | email KindleBoards
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.18 seconds with 16 queries.

Two ways to promote your book on KindleBoards: a banner ad, and our Featured Book ad. Ads appear on a 50% random basis at the top of every page in the forum; your ad will display about 30,000 times per day. Sign up below, or get more info on our banner ads and featured book promotions.
Book not published yet? No problem - just put "TBD" for your book's ASIN.
To support KindleBoards:
Sign up for a KB full banner ad
Currently booking: August 2012
Enter book's ASIN
Sign up to be our KB Featured Book
Currently booking: January 2013
Enter title, author name, ASIN