Author Topic: book background image NOT PAGE  (Read 994 times)

DarkLevi

  • Newbie
  • *
  • Posts: 2
book background image NOT PAGE
« on: March 04, 2010, 12:35:40 AM »
hi all,

i want to put in a background image into the book, so the book lie's on my bgimage.
is that possible, and how?

greetings from germany
DL

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1342
  • MegaZine3 Developer
    • MegaZine3
Re: book background image NOT PAGE
« Reply #1 on: March 05, 2010, 05:01:00 PM »
If you have a look at the default .mz3 file, you'll see how the logo is added. You can add an overall background the same way (just adjust the position of the box a bit, of course). E.g. something like this:
Code: (xml)
  1. <book>
  2.  <background>
  3.    <!-- replace the width and height with your background's width and height -->
  4.    <box width="800" height="600" anchors="(pw-w)/2,(ph-h)/2" background="image(background.jpg)"/>
  5.  </background>
  6.  <!-- content -->
  7. </book>

// also: moved
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

DarkLevi

  • Newbie
  • *
  • Posts: 2
Re: book background image NOT PAGE
« Reply #2 on: March 07, 2010, 05:15:26 PM »
tried this so far before posting in here

will try it with another image an reply

Justin Time

  • Newbie
  • *
  • Posts: 2
Re: book background image NOT PAGE
« Reply #3 on: March 21, 2010, 05:58:06 AM »
Hi,
I am also having difficulty getting a background image to show.  Although I see how the "poweredby.png" image is used in the background tag in the demo, I find that if I take that image ("PoweredbyMegazine3")  into photoshop and paint some red color on it, then save it back as "poweredby.png" in the original directory, that the solid painted color does not show-up on the  background image. That does make sense.   So just to be clear -- the thumbnail image shown in windows explorer clearly shows the red paint on the  "Powered by Megazine3" logo but when the logo is displayed as part of the background, there is no red on it.  I believe this is related to why I cannot 'see' any of my background images. 

I would really appreciate help on understanding what is going on.  It seems that any opaque portion of the image is being treated as transparent????


Thanks,
Justin

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: book background image NOT PAGE
« Reply #4 on: March 27, 2010, 12:59:48 AM »
Did you follow the syntax as in aboves example?
E.g. the path to the background image has to be enclosed in brackets.

Did you try .png and .jpg? Do they both behave the same?
Is your path to the image correct (same rules, i.e. relative to the megazine.swf file!)?

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1342
  • MegaZine3 Developer
    • MegaZine3
Re: book background image NOT PAGE
« Reply #5 on: March 27, 2010, 01:51:21 PM »
Hi,
I am also having difficulty getting a background image to show.  Although I see how the "poweredby.png" image is used in the background tag in the demo, I find that if I take that image ("PoweredbyMegazine3")  into photoshop and paint some red color on it, then save it back as "poweredby.png" in the original directory, that the solid painted color does not show-up on the  background image. That does make sense.   So just to be clear -- the thumbnail image shown in windows explorer clearly shows the red paint on the  "Powered by Megazine3" logo but when the logo is displayed as part of the background, there is no red on it.  I believe this is related to why I cannot 'see' any of my background images. 

I would really appreciate help on understanding what is going on.  It seems that any opaque portion of the image is being treated as transparent????


Thanks,
Justin

Did you clear your cache after modifying the image?
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

Justin Time

  • Newbie
  • *
  • Posts: 2
Re: book background image NOT PAGE
« Reply #6 on: March 29, 2010, 01:40:20 AM »
Thanks so much for your replies.

It works now (!).  While I cannot identify the exact cause of the problem, I find that I can now set the background image without a problem.  I have rebooted, cleared the cache, resarted IE,  and started with a fresh version of the demo case.  One or a combination of these things fixed my problem.

Again -- thanks for the reply.  I think you have a done a great job with this product.  Congrats.

Regards,
JT