Important alert: (current site time 7/16/2013 3:51:45 AM EDT)
 

winzip icon

_Thumbnail Image Browser (Updated)

Email
Submitted on: 2/12/2000
By: Rocky Clark (Kath-Rock Software) 
Level: Advanced
User Rating: By 26 Users
Compatibility: VB 5.0, VB 6.0
Views: 66801
 
     UPDATED! The ultimate Thumbnail Browser! Creates thumbnails of all VB 6.0 supported image formats from whatever folder it's pointed to. Uses BrowseForFolder API, so it will even work across networks. Click edit to shell your favorite editor and load the selected image. New code includes progress bar and saves the last window size size and position settings. 2/15/2000 Changed progress bar. This will be my last change (on to new projects).
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 12 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/12/2000 9:49:00 PMRocky Clark

PLEASE LEAVE A COMMENT and
VOTE FOR ME!
(If this comment was disrespectful, please report it.)

 
2/13/2000 5:10:18 AMSick

Fantastic coding!! I've seen more VB thumbnail browsers, but this one is finally one of high quality. Excellent job! The only thing i miss is a progressbar. But that should be no significant problem :o>
(If this comment was disrespectful, please report it.)

 
2/13/2000 8:45:29 PMRocky Clark

Sick,
Thanks for the compliments. Maybe you could draw in the StatusBar for a progress bar. Keep on coding!
(If this comment was disrespectful, please report it.)

 
2/13/2000 11:01:38 PMlvinniel

I must say that this thumbnail viewer is exactly what I have been looking for at PSC. The others don't compare with this one at all. I compared it with PaintShop Pro's image browser and I browsed 963 images. It took PSP5 37 seconds @ 6.576 MB RAM consumption while this App took 17 seconds @ 8.652 MB RAM consumption. I'm not sure how windows caches the recent info, but I tried it several times for both to make sure they equally had the cache in hand and your app still outperformed PSP!! Good job!! This is a keeper!
(If this comment was disrespectful, please report it.)

 
2/14/2000 3:01:56 PMP Lerdahl

A great code and fast on running.
It could used a progressbar to show the progress on large directories.
(If this comment was disrespectful, please report it.)

 
2/14/2000 8:43:50 PMRocky Clark

I updated the project today 2/14/99. The new code includes a progress bar and saves the last window size and position settings.

Keep Coding!
Rocky
(If this comment was disrespectful, please report it.)

 
2/15/2000 3:10:33 AMTony

Rocky, how about using lightweight controls from VB. This way you can reduce your resource problem. I tried. It went from 7% to 2% usage (only small test done). You can find the LightWeight controls on disk 3, in the folder: X:\COMMON\TOOLS\VB\WINLESS. I use the same control(s) for the submission I made for Clipboard Control.
(If this comment was disrespectful, please report it.)

 
3/4/2000 2:24:26 AMTyson Rawlings

You might use a timer event to load the thumbnails, right now you are using a for/next to load all the images, when you could change that into a timer event, this would allow the user to see the thumbnails load on the screen, and click on the one's that have been loaded. So people with large directoies don't have to wait a year, the first image appers in a second...

This will slow down the load by about maybe .01 seconds per image, but well worth it!

later...
Tyson Rawlings
SoftTech International
http://www.stsoftware.com/
(If this comment was disrespectful, please report it.)

 
3/18/2000 8:33:13 PMsgt drake

I am getting a error msg when opening project. Retained is an invalid key thumbs.vbp can't be loaded
(If this comment was disrespectful, please report it.)

 
3/19/2000 7:16:58 AMAppCobbler

Sorry to hear that Sgt. It sounds like you may be using VB 5.0 and this program was written using VB 6.0.

(If this comment was disrespectful, please report it.)

 
3/21/2000 12:17:01 PMJonathan

sgt drake, to fix the 'retained is an invalid key' error, open up the vbp in notepad and find the line that has the 'retained' in it, delete it, it should work now.
(If this comment was disrespectful, please report it.)

 
5/28/2000 8:47:21 AMDevon K

Very nice work. You should just add a form2 with a picture box in it to load up your files when you click on them.

(If this comment was disrespectful, please report it.)

 
7/4/2000 10:01:49 AM¤KEEL¤

Hi Rocky: Iam newbie, and Iam frustrate
because I have a project on mind but I
dont Know how write to a code,what Iwant
to ,is there any,procedure,rules,or step
to follow because I dont Know how to
translate my Orders to the application
to a code because,I dont Know when use
simbols like *,"",=,&,%,#,~ etc. How you
guys Know when and what simbols to use
to tell the application what to do whith
a code. Please Help me out! I dont want
to be copying somebody's work,I want to
be like you,I want to create! My goal is
Create a project (when you executed it
show a message on center of the screen,
and right after cople of seconds shutoff
the minitor. But like I've been say, I
don't want somebody give me a code for it, I want to create it, If somebody
teach me how to write! Please somebody Help me ! Advises,Comments,opinions. Feel free to email me at
kazz@ProgenIC.zzn.com
Thanks and God Bless You all Guys! :)
(If this comment was disrespectful, please report it.)

 
7/4/2000 10:50:16 AMRocky Clark (Kath-Rock Software)

KEEL,

Since you are so new, the best I can do for you is tell you how to get started. Search the web for "Learn Visual Basic". Include the quotes in your search. There are many sites out there that can help you get started in VB. This is not a simple undertaking, but with some persistance, you will be writing your own programs in no time. After you've learned the basics, then come back to Planet Source Code to see how other programmers are accomplishing specific tasks.

Good Luck!
Rocky

(If this comment was disrespectful, please report it.)

 
8/1/2000 4:21:03 PMBarry DeLong

Is there a way to save the thumb thumbnails as files in a specified directory? Perhaps using a save function at the end of the 'CreatePicThumb' procedure?
(If this comment was disrespectful, please report it.)

 
8/2/2000 6:22:27 AMRocky Clark (Kath-Rock Software)

Barry,

Yes you can save the picture using 1 line of code. In the 'CreateThumbPic' procedure, look for the line 'lRet = StretchBlt(...)'. Add this code as the next line. 'Call SavePicture(picThumb.Image, FileName)' where 'FileName' is whatever path and file you want. That's it. The picture is saved. You'll need to come up with a schema for naming the thumbs, but that shouldn't be too difficult.
(If this comment was disrespectful, please report it.)

 
12/15/2000 4:29:57 PMJasonnn

Is there a way I could give the program a list of urls and have it make thumnails for them target picture files. I understand for modem users this process may be somewhat time consuming.
Would it take just as long to save each file to the hard drive first before making thumbnails?


(If this comment was disrespectful, please report it.)

 
12/17/2000 8:42:28 AMRocky Clark

Jasonnn,

It would be quicker to download the images to a folder and then point the program to that folder. This way when you go to edit the image the code wouldn't have to go out and download image from a site again.

(If this comment was disrespectful, please report it.)

 
4/24/2001 9:52:13 AMGReNDeL PRiMe

Cool program.
I have changed it, though, to suit my goal: getting pathnames from a database and loading the pictures behind the path. I have included the modified program in my project (not on PSC), fully credited o.c. If you have an objection please let me know and I will remove it from my project.
Thanks
GP
(If this comment was disrespectful, please report it.)

 
6/27/2001 7:12:49 PMsomeone

the program just freeze when browsing temporany internet file, as in older version...when will it be fixed?
(If this comment was disrespectful, please report it.)

 
7/21/2001 4:41:25 AMjohnb

Great bit code. This is just what I'm looking for. Thanks for the additional comment on how to save the image. Cheers!
(If this comment was disrespectful, please report it.)

 
3/10/2002 10:52:51 PMPietro Cecchi

Splendid code, Rocky!
5 globes are mandatory.
Pietro
(If this comment was disrespectful, please report it.)

 
3/29/2002 7:08:06 AMAndrew

It performs well, and it's well documented.

Like any programmer, I want to make some changes so that it does what I want. I'm able to do so because it is so well written. Thanks Rocky.

(If this comment was disrespectful, please report it.)

 
4/6/2002 5:13:06 PMC. Sibon

hey dude,

I can get your code to work, i wanted to work with your example with a path array, i want to send you the project but I donno your e-mail adres.
(If this comment was disrespectful, please report it.)

 
6/22/2002 4:46:00 AMRichard

Is this the author???, or just using it??

http://www.dutchthewiz.com/editor/thumbs


http://www.dutchthewiz.c om/images/thumbsmain.gif

(If this comment was disrespectful, please report it.)

 
7/21/2002 1:53:48 AMAdam

check out ImageBrowser on PSC if you are interested in this.
(If this comment was disrespectful, please report it.)

 
1/13/2003 11:02:58 PMpcito

This is the ONLY good thumbnail browser on PSC. It is the only one that caches thumbnails and handles resizing well. Good job.
(If this comment was disrespectful, please report it.)

 
3/2/2003 11:41:26 PM

Great code 5 globes
(If this comment was disrespectful, please report it.)

 
9/19/2003 5:27:27 AM

deneme
(If this comment was disrespectful, please report it.)

 
11/20/2003 11:28:31 AMMike2

Great code. How can I delete a thumbnail?
(If this comment was disrespectful, please report it.)

 
3/15/2005 5:39:57 AM

Is there a way to create thumbnails for each page in a PDF file having both text and images using this code.If yes,what should i change in this code?
(If this comment was disrespectful, please report it.)

 
6/9/2005 9:33:57 AMTrey Smith

Slow, using PSP as a comparison is nnot good, as their thumbnails blow. You control looks gorgous, use a timer, and only load what will be visible. Overall I liked it, but speed makes it unusable.
(If this comment was disrespectful, please report it.)

 
6/10/2005 9:20:38 AMRocky Clark (Kath-Rock Software)

To all PSC users,
I have not posted code here for quite some time. This is due to comments like the one from Trey Smith.
This is not a free program site! This is a source code site! It was meant to show you how to code different pieces of YOUR programs.
Users like Trey, who just download entire programs and then complain that it doesn't do everything they want are destroying this site.
If Trey WAS REALLY a programmer, he would take the parts he wants and then code HIS OWN program to do the rest.
Just My Two Cents.
(If this comment was disrespectful, please report it.)

 
11/24/2005 12:34:44 AMiceman

Your code's great, it made my personal project looked great. 5 globes for you...
(If this comment was disrespectful, please report it.)

 
12/11/2005 6:13:04 AMRamci

i should say nice jpb ;)
(If this comment was disrespectful, please report it.)

 
2/14/2006 6:45:18 PMJakeBullet

Simple and clean. Good stuff! I will drop in 5 balls worth.
(If this comment was disrespectful, please report it.)

 
10/23/2006 4:16:06 PMBruno sjm

God bless you this is the best i have seen.
Dear Rocky Clark
could you include a search bar so that
we can search image of our choice. just like window XP has it.
Thanks

(If this comment was disrespectful, please report it.)

 
1/26/2007 12:59:11 AMJIm

Trying to get this so it will copy images to cilpborad but having no luck.I am self teaching myself so any help would be greatly welcome
(If this comment was disrespectful, please report it.)

 
12/16/2007 9:33:27 PMbrad

Amazing stuff right here.. I plan to make a semi-replacement for the VeohTV client in an attempt to prevent the clients routine copyright deletion. I'm starting a whole suite of things that will be free of charge. I'll be sure to credit you all the way, too! Also, this is another fine example of what PSC is all about, Thanks.
(If this comment was disrespectful, please report it.)

 
9/20/2008 10:11:07 AMirish_bloke

i cant seem to get the images to appear in my project. Ive copied all the code and controls over but somethings not working right cant figure it out. Great code by the way.
(If this comment was disrespectful, please report it.)

 
9/20/2008 10:58:51 AMirish_bloke

Nevermind it was my new forms "Scalemode" propery it was Twips instead of pixel.
(If this comment was disrespectful, please report it.)

 
2/5/2009 3:34:43 PMWolfgang

Hi Rocky, thanks for posting this great code! 5 Globes! For viewing the thumbs on a high resolution display I have to enlarge the thumbs. I tried to change the .width properties of all related controls but nothing happened. How can I change the size of the thumbs? Thanks for your help.
(If this comment was disrespectful, please report it.)

 
2/11/2009 1:07:43 PMWolfgang

Hi Rocky,thank you very much for your help by mail. Now everything is perfect! Best regards, Wolfgang
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.