Problem with /html-template <file>

Sep 17, 2010 at 6:10 AM


I have simple template

 body {
 margin: 0px;
 img {
 position: absolute;
 top: 0; left: 0;
 width: 100%; height: 100%;
 p {
 font-size: 100px;
 color: white;
 background: grey;
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 filter: alpha(opacity=50);
 padding: 20px;
 <img src="{image}"/>
But when I run command - Pauthor.exe /source cxml MyCollection.cxml /html-template MyTemplate.htm /target deepzoom output\MyCollection-dz.cxml, I geting collection with empty image.

What's wrong?

Sep 17, 2010 at 11:56 PM

Without more information, it's hard to tell exactly, but you may be running into problems if your images are significantly larger than the output size of your template.  The underlying IE component will occasionally drop images which require too much scaling to fit.  You can try pre-scaling your images to no larger than the output size of your template, and see if that helps.


Sep 18, 2010 at 6:12 AM

Hi, aminer

My images is small (240x320). What is absolute path image? I used source cxml with include transform image.

Sep 20, 2010 at 6:32 PM

Another potential problem is that if your "{image}" tag produces a relative path, the path must be relative to the location of the HTML template file.  Otherwise, you'll want to provide an absolute location.