Creating/Using JPG Buttons

  • I'm pretty new to krpano, so this might be an easy one: As far as I can see, the standard button set that follows with krpano is a simple JPG file, containing all representations of the entire set at once. What makes me wonder is, that it is without transparency whatsoever, because the JPG format does not support this. So, the black colour seems to be interpreted by the krpano player itself as "show this as transparent". Am I right? And if so, can I change this to any colour by some kind of parameter or so?

    Yours,
    Michael

  • Hi,

    du hast im "deutschen" Forum gepostet, deshalb jetzt eine deutsche Antwort
    (beim Posten kann die Sprache des Posts gewählt werden)

    richtig, JPG kann keine Transparenz, und ich hatte die Buttons im Original
    auch nur ohne Transparenz vorliegen, deshalb habe ich einfachheitshalber
    den Blendmode "screen" verwendet, beim dem Schwarz transparent wird,
    (funktioniert genauso wie z.B. in Photoshop mit den Ebenen, dort gibt es auch
    eine "screen" Einstellung)

    in der XML:
    <plugin ... blendmode="screen" ... />

    siehe auch hier unter "blendmode":
    https://krpano.com/docu/xml/#plugin

    um die Transparenz selber individuell festzulegen, ist es auch möglich,
    ein PNG mit einem Alphakanal anstelle des JPGs zu verwenden,
    (das blendmode="screen" dann entfernen oder auf "normal" setzen)

    Schöne Grüße,
    Klaus

  • Falls du mit Photoshop arbeitest:

    Neues Bild -> Hintergrundfarbe Transparent!!! -> Buttons malen -> Speichern als png -> blendmode="normal"

    So haste alles sichtbar außer den Transparenten Hintergrund.
    So habe ich es gemacht und es funktioniert tadellos.
    Kannst ja mal auf meiner Seite in der Galerie schauen.
    http://www.mypano.eu -> Galerie
    Die einzelnen Buttons!


    Gruß
    Gazu

  • Ok, danke euch beiden für den Hinweis. Ich benutze standardmässig immer noch nur JPG und GIFs, PNG selten. Es wird wohl Zeit, dass ich PNG ernsthaft zur Kenntnis nehme *wink* Ist mir dann doch logischer, als mit der screen-Einstellung zu arbeiten.

    Michael

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!