www.bolidesoft.com Forum Index www.bolidesoft.com
Bolide Software
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

 
 
[Bolide Software Home] [All My Movies™ page] [All My Books™ page] [Image Comparer™ page]
 


image resizes wrong in template

 
Post new topic   Reply to topic    www.bolidesoft.com Forum Index -> All My Movies™ related
Author Message
MD



Joined: 08 Aug 2006
Posts: 108

PostPosted: Tue Aug 08, 2006 9:08 am    Post subject: image resizes wrong in template Reply with quote

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

PostPosted: Tue Aug 08, 2006 6:08 pm    Post subject: Re: image resizes wrong in template Reply with quote

MD,

Nice template Wink

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

PostPosted: Wed Aug 09, 2006 7:55 am    Post subject: Re: image resizes wrong in template Reply with quote

bolide wrote:
MD,

Nice template Wink

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 Sad

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

PostPosted: Wed Aug 09, 2006 9:41 am    Post subject: Re: image resizes wrong in template Reply with quote

its bolide, my profile password is on another computer and I don't remember it Wink

MD wrote:

But it doesn't solve the problem Sad

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
Code:
[amm:imgname]
only? But you should then delete
Code:
;WIDTH="200">
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

PostPosted: Wed Aug 09, 2006 12:26 pm    Post subject: Reply with quote

Unfortunately double quotes are taboo in my code because it's javascript.
However, I found a nice walkaround Very Happy
Code:
movie.Plaatje = "[amm:imgname]";// width="200" />

Problem solved Cool
Back to top
bolide
Site Admin


Joined: 04 Aug 2005
Posts: 585

PostPosted: Wed Aug 09, 2006 2:36 pm    Post subject: Reply with quote

Great Smile
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

PostPosted: Sat Aug 12, 2006 9:24 pm    Post subject: Reply with quote

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

PostPosted: Mon Aug 14, 2006 7:18 am    Post subject: Reply with quote

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 Wink

For those who don't know, 'Kijkwijzer' is a Dutch version of the MPAA rating system.
This template supports the Kijkwijzer icons Very Happy
Back to top
cme



Joined: 13 May 2006
Posts: 5

PostPosted: Mon Aug 14, 2006 7:03 pm    Post subject: Reply with quote

Thx mate.

i'm Ducth too, like your template very much Smile
Thx for the hard work.

cya
Back to top
bolide
Site Admin


Joined: 04 Aug 2005
Posts: 585

PostPosted: Thu Aug 17, 2006 7:10 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    www.bolidesoft.com Forum Index -> All My Movies™ related All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group