English > Scripts and Templates
Imdb Images Version 1.1 Last Version for a while
mgpw4me@yahoo.com:
Version 1.1 is the last version of this script until the scripting environment is enhanced.
Version 1.01
fixes a bug in the people url, and allows the script to run in silent mode by updating the silent mode setting.
Version 1.1
- adds the ability to set the image width AND height to a single value. Set the IMAGE_SIZE_X and IMAGE_SIZE_Y values in the script to the same value, and a square image will be returned...with whitespace to pad the dimension that is shorter.
- if there are multiple gallery pages for a person, the image selection dialog will start with a list of gallery pages you can visit followed by the images of the gallery you are on. You can move freely from one gallery to the next, but can only load a single image.
This script will download large images from IMDB.
There are known problems:
1) DOWNLOADED IMAGE WILL REPLACE EXISTING IMAGES
2) It only operates in USER MODE. If you run it in SILENT MODE it will not download any images.
3) Multiple image downloads are not yet supported. It downloads the first 'checked' image in the selection box.
4) Images cannot be scaled to a maximum width AND height at the same time.
While work is in progress to resolve these issues, the script is somewhat usable, so here it is.
** USER CONFIGURATION **
You can use the default settings or update the USER CONFIGURATION section of the script.
IMAGE_SIZE_X DEFAULT: 600 OTHER OPTIONS: enter the maximum width of the image
IMAGE_SIZE_Y DEFAULT: 0 OTHER OPTIONS: enter the maximum height of the image
DEBUG DEFAULT: False OTHER OPTIONS: True
SILENT_MODE DEFAULT: False OTHER OPTIONS: True
By default, the script will download images up to 600px wide, scaling larger images to 600px wide using the correct aspect ratio. Smaller images will not be upscaled. If IMAGE_SIZE_X is larger than IMAGE_SIZE_Y, the WIDTH will determine the size of the image. When IMAGE_SIZE_Y is the larger, the HEIGHT will be used.
Please report problems and suggestions in this forum.
[attachment deleted by admin]
rick.ca:
Seems to work well—as described.
It seems doubtful, but...might it be possible to include any textual information in the selection dialog ("gallery"?)? It would be helpful to see the IMDb classification (type and title) and original size (from the filename suffix?).
mgpw4me@yahoo.com:
--- Quote from: rick.ca on January 18, 2010, 10:47:47 pm ---It seems doubtful, but...might it be possible to include any textual information in the selection dialog ("gallery"?)? It would be helpful to see the IMDb classification (type and title) and original size (from the filename suffix?).
--- End quote ---
The title information is indeed useful. It's a shame we don't have an 'image tagging' system in place to save such info. It would probably be messy for Nostra to set up in the scripting environment, but it really would be nice. I don't know of a way to select information for the specific images chosen. I could save all the data in a custom field, but I don't think that improves the situation.
If I can figure out how to include this information in the selection dialog, I will. For now, if I do that, it will add all the selected images into new person records with the same name as the title. That's one messy way to get multiple images to download, eh?
The 'real' image size isn't actually known. From what I can see, IMDB just adds the sizing parameters to the image to accommodate their page layout.
I also forgot to mention that I only parse the first page of images...48 images maximum.
rick.ca:
--- Quote ---If I can figure out how to include this information in the selection dialog, I will.
--- End quote ---
The selection dialog is all I was thinking of, although I suppose it would be nice to be able to capture such information in the database. Image tooltips would be cool. Remember, however, we don't yet have the ability to create custom fields in people records.
--- Quote ---For now, if I do that, it will add all the selected images into new person records with the same name as the title.
--- End quote ---
That would be an interesting violation of the fundamental database structure. But of what use would it be? Something like this would be more applicable in a movie script—like one which finds shots of an actor selected in movie credits and puts the selected images in the movies screen shot container.
Is this just your thought about how to get multiple photos associated with one movie, or is there some more general difficulty in downloading multiple images? I would think the first step is to get the selection dialog working as it appears to be intended—to allow the selection of one, all or a selection of the available photos.
--- Quote ---I also forgot to mention that I only parse the first page of images...48 images maximum.
--- End quote ---
Do you have any sense of how they're organized? They're not random, it's unlikely the "best" or most popular ones are being put on the first page, so this restriction is going to be a problem. The very thing being sought (e.g., the best head shots, screen shots from a particular movie) may be excluded. At the same time, the initial download will take too long if not restricted (BTW, 48 seems to work well in this regard). Can you include a "next page" button or link? That would provide a convenient way of searching further—if necessary.
mgpw4me@yahoo.com:
The incorrectly named image records is the reason I can't add title information to the selection dialog at the moment. I'll try to find a solution, but I'm also trying to get my 'a' list people updated so I can see what the difference is. My first 100 shows 28 (!!) images now...11 more than last time I looked. At that rate I'll have over 16,000 images just from IMDB.
Check out 'Jane Fonda' and tell me the pages aren't organized ;D....my favorite space girl. Paging built into the selection dialog would be best, but I don't know if it is. Other than that I could build a paging system, but don't know if I could append images to the stream...or if I could send multiple streams without overwriting previous streams. Testing required unless Nostra can provide insight.
Navigation
[0] Message Index
[#] Next page
Go to full version