|
|
| Author |
Message |
MD
Joined: 08 Aug 2006 Posts: 108
|
Posted: Tue Aug 08, 2006 9:08 am Post subject: image resizes wrong in template |
|
|
Hi,
I use a template where I store every movie in 1 large javascript array.
The problem is, that AMM resizes the covers to small.
I use covers of 200 x 278, but I get covers of 140 x 194
My current workaround uses a dummy template to produce the images.
However I don't think other people want to use this workaround.
Does anyone know how to solve this problem?
BTW, here is a sample of my template (Dutch language version)
 |
|
| Back to top |
|
 |
bolide Site Admin
Joined: 04 Aug 2005 Posts: 585
|
Posted: Tue Aug 08, 2006 6:08 pm Post subject: Re: image resizes wrong in template |
|
|
MD,
Nice template
| MD wrote: |
I use covers of 200 x 278, but I get covers of 140 x 194
|
I suppose you used line like this in your template:
<IMG SRC="[amm:imgname]" WIDTH="140">
Try to change it to:
<IMG SRC="[amm:imgname]" WIDTH="200"> |
|
| Back to top |
|
 |
MD
Joined: 08 Aug 2006 Posts: 108
|
Posted: Wed Aug 09, 2006 7:55 am Post subject: Re: image resizes wrong in template |
|
|
| bolide wrote: | MD,
Nice template
| MD wrote: |
I use covers of 200 x 278, but I get covers of 140 x 194
|
I suppose you used line like this in your template:
<IMG SRC="[amm:imgname]" WIDTH="140">
Try to change it to:
<IMG SRC="[amm:imgname]" WIDTH="200"> |
Thanks,
But it doesn't solve the problem
I use this javascript to write the picture:
| Code: | | createChildItem(tempBody, "span", "<img src='" + movies[Movie][1].Plaatje + "' alt='" + movies[Movie][1].movie + "' class='cover' width='200' />"); |
| Code: | function createChildItem(ParentObject, childType, htmlData)
{
var childItem = document.createElement(childType);
childItem.innerHTML = htmlData;
ParentObject.appendChild(childItem);
return childItem;
} |
In this case the function createChildItem creates a span object with the image as HTML data.
movies[Movie][1].movie is filled with [amm:title]
movies[Movie][1].Plaatje is filled with [amm:imgname]
As you can see I already use width='200'
BTW, if there is a place where I can post the template, I'll post it. |
|
| Back to top |
|
 |
bolidefo Site Admin
Joined: 04 Aug 2005 Posts: 2
|
Posted: Wed Aug 09, 2006 9:41 am Post subject: Re: image resizes wrong in template |
|
|
its bolide, my profile password is on another computer and I don't remember it
| MD wrote: |
But it doesn't solve the problem
I use this javascript to write the picture:
| Code: | | createChildItem(tempBody, "span", "<img src='" + movies[Movie][1].Plaatje + "' alt='" + movies[Movie][1].movie + "' class='cover' width='200' />"); |
|
Is it possible for you to write | Code: | | [amm:imgname];WIDTH="200"> | (note, the double quotes is necessary and WIDTH should be on the same string) instead of only? But you should then delete before inserting to the IMG tag in JavaScript.
| MD wrote: |
BTW, if there is a place where I can post the template, I'll post it. |
You can send it to us to support@bolidesoft.com and we can include it in the next All My Movies release if you agree. |
|
| Back to top |
|
 |
MD
Joined: 08 Aug 2006 Posts: 108
|
Posted: Wed Aug 09, 2006 12:26 pm Post subject: |
|
|
Unfortunately double quotes are taboo in my code because it's javascript.
However, I found a nice walkaround
| Code: | | movie.Plaatje = "[amm:imgname]";// width="200" /> |
Problem solved  |
|
| Back to top |
|
 |
bolide Site Admin
Joined: 04 Aug 2005 Posts: 585
|
Posted: Wed Aug 09, 2006 2:36 pm Post subject: |
|
|
Great
Could you send it to us? We will release the new fixed build today and can include your template in the installation file |
|
| Back to top |
|
 |
Ge0force
Joined: 12 Aug 2006 Posts: 3
|
Posted: Sat Aug 12, 2006 9:24 pm Post subject: |
|
|
I would be VERY interested in this kinda output!
If this nice guy sends you this, can it be listed under the export templates? Since I'm dutch too, I could use this a lot! |
|
| Back to top |
|
 |
MD
Joined: 08 Aug 2006 Posts: 108
|
Posted: Mon Aug 14, 2006 7:18 am Post subject: |
|
|
| Ge0force wrote: | I would be VERY interested in this kinda output!
If this nice guy sends you this, can it be listed under the export templates? Since I'm dutch too, I could use this a lot! |
I've send the template to bolide.
To use the 'Kijkwijzer' system, you have to add the kijkwijzer rating into the MPAA field manually and set the 'usekijkwijzer' parameter in the header file to true
For those who don't know, 'Kijkwijzer' is a Dutch version of the MPAA rating system.
This template supports the Kijkwijzer icons  |
|
| Back to top |
|
 |
cme
Joined: 13 May 2006 Posts: 5
|
Posted: Mon Aug 14, 2006 7:03 pm Post subject: |
|
|
Thx mate.
i'm Ducth too, like your template very much
Thx for the hard work.
cya |
|
| Back to top |
|
 |
bolide Site Admin
Joined: 04 Aug 2005 Posts: 585
|
Posted: Thu Aug 17, 2006 7:10 am Post subject: |
|
|
The latest version of the template by MD is available for download here:
http://www.bolidesoft.com/software/Movie_Library.zip
And I think we will include it in the installation file after some tests.
For the template "installation" you should to create new folder in the "templates" folder of AMM installation path (typically "Program Files\AllMyMovies\templates") and unpack ZIP contents into this folder. |
|
| Back to top |
|
 |
|