I'm glad you're getting on well with things. Hopefully the notes below will help to clarify a couple of points.

However, the base HTML method when I enter into my wordpress document it shows up as script.

This sounds like you may have been entering the embedding code in 'Visual' mode rather than 'Text'. (In 'Visual' mode, anything you enter into the body of the post, such as HTML code, will be displayed on screen as you see it in the editor.)

The only issue I had was the color not working correctly. I had to still enter that into the plugin area for 'background color'.

backgroundColor is a Lite configuration option. Any Lite configuration options entered into the Pro Options text area will be ignored and must be set via their own individual controls in the gallery settings window.

3,252

(16 replies, posted in Juicebox-Pro Support)

But because of which bug of wich propety in safari (maybe viewport height?)... where is the conflict with JB?

Unfortunately I do not know the exact cause of this problem. This is one for the developers to investigate further.

Does this also happen when I will turn to just "splash modes"?

I do not have an iOS 8 device on which to test but you could certainly try.
This demo gallery uses a Splash Page by default: http://www.juicebox.net/demos/pro/splash/
If you find that this is a suitable workaround, then you can force a gallery to use a splash page by setting showSplashPage="ALWAYS" (in JuiceboxBuilder-Pro's 'Customize -> Splash Page' section). (Other Splash Page Configuration options can be found here.)

3,253

(4 replies, posted in Juicebox-Pro Support)

That's great! Thanks for letting me know.

I am glad that you have been able to resolve your problem.
Thank you for posting back to let me know.

For other users reading this thread, the notes below might help to clarify things.

the gallery is rendered static with hyperlinks to click to open the gallery (View Gallery).

What you are describing is the Splash Page.
This is a placeholder for the gallery which is displayed by default on small screen devices when the gallery is embedded in a page alongside other content (rather than displayed on a page of its own with dimensions of 100% x 100%, filling the browser window).
When the user taps 'View Gallery', the gallery is expanded to fill the user's browser window.
For more information about the Splash Page and how Juicebox adapts to different devices and screen sizes, please see here.

You can choose to not use the Splash Page by setting showSplashPage="NEVER" (in JuiceboxBuilder-Pro's 'Customize -> Splash Page' section).
Alternatively, you can force the gallery to be displayed in Large Screen Mode on all devices and in all browsers by setting screenMode="LARGE" ('Customize -> General').

If you choose to continue to use the Splash Page, you can customize it using the Splash Page configuration options.

3,255

(1 replies, posted in Juicebox-Pro Support)

You should be able to manually add Juicebox-Pro configuration options to your gallery in the 'Juicebox Library - Pro / Manual Config' section of your Drupal Dashboard ('Home -> Administration -> Structure -> Content types -> Article -> Manage Display -> Juicebox settings').
Options should be set one per line in the text area in the form optionName="optionValue".

In order to use Fotomoto, enter your Fotomoto Store Id, for example:

fotomotoStoreId="0123456789abcdef0123456789abcdef01234567"

3,256

(9 replies, posted in Juicebox-Pro Support)

Try fixing the HTML errors on your web page. (There are not too many so it should not take long but the errors that currently exist may be causing problems.) Different browsers may be more tolerant towards errors than others.
This may or may not help but, even if it does not, once the errors are fixed, your web page should be rendered with greater predictability and consistency across different browsers and we can then eliminate HTML errors as being a possible cause of your problem.
You can check the code on your web page using the W3C Markup Validation Service and then fix the errors reported.

Also, rather than load your gallery into an iframe whose dimensions look to be set dynamically by JavaScript, you might like to try embedding your gallery directly into your web page by following the baseUrl embedding instructions here.

You could also check to see if your problem happens just in Mobile Safari or in Chrome, too.

Also ... when the galleries load on iPad, the first image doesn't load.  Just a black screen.

This sounds like you may be viewing your gallery over a 3G/4G connection (rather than wi-fi). If this is the case, then please see this FAQ which has a solution: Why can't I view my gallery on a 3G mobile connection?

3,257

(4 replies, posted in Juicebox-Pro Support)

When re-saving a gallery after editing, please make sure that none of the gallery files are open in any other programs (like the gallery's HTML file being open in a browser or the gallery's XML file being open in an editor). If any of the gallery files are open in another program, then they may have a temporary lock on them (by the program in which they are currently open) which will prevent JuiceboxBuidler-Pro from being able to overwrite the files.

Also, after making any changes to an existing gallery, please clear your browser's cache before reloading your gallery to ensure that your browser is using the most recent versions of your gallery files.

Hopefully this will help.

And the plugin doesn't have any options that I can select to customize the gallery.

WP-Juicebox allows you to configure a Juicebox gallery using any or all of the configuration options available here.
All Lite options have individual controls within the plugin's interface and Pro options can be entered into the Pro Options text area, one per line, in the form optionName="optionValue".

How do I get the desktop application Juicebox Builder Pro galleries, into my wordpress site easily?

If you have created a gallery with JuiceboxBuilder-Pro and want to embed it into a WordPress post, then you could either:
(1) Recreate the gallery using WP-Juicebox and copy and paste the options from the gallery's XML file into the Pro Options text area.
... or:
(2) Do not use WP-Juicebox and, instead, use the baseUrl method of embedding as documented here.
Essentially, you would create a Juicebox-Pro gallery on your computer with JuiceboxBuilder-Pro, upload the complete gallery folder (not just the contents) to your web server and paste the baseUrl embedding code into the body of your WordPress post making sure that the method of entry is 'Text' rather than 'Visual'.
It does not matter where on your web server you upload your gallery folder to as long as the two paths within the embedding code (the path to the 'juicebox.js' file and the baseUrl itself, pointing towards the gallery folder) are correct.

3,259

(16 replies, posted in Juicebox-Pro Support)

Ok, but what bug is it?

When scrolling down a web page which contains a Juicebox gallery in Mobile Safari in iOS 8, the page jumps back up to the top.

And is it really only a bug on safari side?

Yes. The bug affects only Mobile Safari (and not Chrome) and only in iOS 8 (and not iOS 6 or iOS 7).

As noted above, this issue has been logged as a bug and it should hopefully be fixed in the next version. Unfortunately, at the moment, I do not know of a workaround or when the next version will be released.

3,260

(2 replies, posted in Juicebox-Pro Support)

That seems strange. I would expect that JuiceboxBuilder-Pro resizes images and thumbnails using similar rescaling algorithms and techniques and all metadata is stripped out of both images and thumbnails during the resizing process.
Also, the main images and thumbnails are both displayed in the gallery using (dynamically-generated) standard HTML <img> tags.

Are you allowing Juicebox-Pro to resize your images or have you deselected the 'Resize Images' checkbox (in which case JuiceboxBuilder-Pro would just copy your original images to the gallery's image's folder)?

If you see the problem in only certain browsers or devices, then it sounds like it might be an ICC Color Profile problem.
It sounds like your images may have ICC Color Profiles embedded within them and that JuiceboxBuilder-Pro is not resizing them. This would result in images which retain their ICC Color Profiles and thumbnails which have the ICC Color Profiles stripped out. This might account for the differences between the two sets of images.

There are no color settings within JuiceboxBuilder-Pro (and no way to force JuiceboxBuilder-Pro to retain metadata in resized images or thumbnails) so to ensure that the images and thumbnails look the same, you might need to either:
(1) Allow JuiceboxBuilder-Pro to resize you images.
... or:
(2) Create your own set of thumbnails with your ICC Color Profile. This should result in your images and thumbnails always matching each other but perhaps not always being displayed consistently across different browsers (which may or may not support ICC Color Profiles).

It is usually recommended that images intended for the web should be saved as sRGB.
Please check to see if your images are saved as such.

3,261

(3 replies, posted in Juicebox-Lite Support)

WP-Juicebox does not come with any gallery presets but you can use any (or all) of the options on this page to configure a gallery.
The Juicebox-Lite options can be set by their individual controls in the WP-Juicebox interface.
Pro Options (if you are a Pro user) can be entered into the Pro Options text area of your gallery's settings window, one per line, in the format optionName="optionValue".

If you want to replicate the Top Aligned Demo gallery, its configuration options can be found in the gallery's XML file here: http://www.juicebox.net/demos/pro/top/config.xml

You can copy and paste the configuration options (below) into your gallery's Pro Options text area.
(Please note that Lite options will be ignored and should be set by their individual controls in the WP-Juicebox interface.)

resizeOnImport="false"
shareFacebook="false"
shareTwitter="false"
shareGPlus="false"
sharePinterest="false"
shareTumblr="false"
captionBackColor="rgba(238,238,238,0.5)"
captionPosition="BELOW_THUMBS"
showExpandButton="false"
showOpenButton="false"
maxThumbColumns="3"
textColor="rgba(51,51,51,1)"
textShadowColor="rgba(0,0,0,0)"
backgroundColor="rgba(238,238,238,1)"
imageShadowColor="rgba(0,0,0,0)"
imageShadowBlur="20"
imagePadding="10"
maxCaptionHeight="100"
imageTransitionType="NONE"
imageTransitionTime="0.3"
showThumbsOnLoad="true"
galleryTitle="Juicebox-Pro Top Aligned Demo"
galleryDescription="Demonstrating Juicebox-Pro's Social Sharing and Fotomoto Shopping Cart Integration"
galleryFontFace="Georgia,serif"
imageVAlign="TOP"
imageHAlign="LEFT"
thumbsPosition="RIGHT"
maxThumbRows="5"
galleryTitlePosition="TOP"
buttonBarPosition="TOP"
buttonBarBackColor="rgba(238,238,238,0.5)"
thumbFrameColor="rgba(255,0,0,1)"
buttonBarIconColor="rgba(0,0,0,1)"
buttonBarIconHoverColor="rgba(255,0,0,1)"
thumbsVAlign="TOP"
galleryWidth="1000"
thumbNavPosition="BOTTOM"
showThumbsButton="false"
showAutoPlayButton="true"
showNavButtons="true"
imageNavPosition="IMAGE"
showImageNav="false"
showThumbPagingText="false"
thumbShadowColor="rgba(0,0,0,0)"
navButtonIconColor="rgba(0,0,0,1)"
navButtonBackColor="rgba(0,255,0,0)"
showAutoPlayStatus="false"
goNextOnAutoPlay="true"
enableLooping="true"
enableDirectLinks="true"
displayTime="3"
navButtonIconHoverColor="rgba(255,0,0,1)"
topAreaHeight="40"

If Page Composer replaces the default WordPress editor (TinyMCE) in the backend with a third-party alternative, then WP-Juicebox will not be compatible with it. (WP-Juicebox will have no knowledge of the editor or how to insert a shortcode into the editor's content.)
WP-Juicebox should work fine with all variants of the CKEditor/FCKEditor and TinyMCE editors.

If you are still using the default WordPress editor but the problem remains, I would be happy to investigate further. However, if the plugin you are using is Visual Composer, it is not free and I am unable to download it to examine its source code and to try to replicate the problem for myself. Therefore, I would need access to your web server and WordPress installation to see the problem for myself and to try to figure out what is causing it. If you are agreeable to this, please let me know and I will email you with an address where you can send me your FTP and WordPress login details.

Here are a few things to check/try:

(1) The most likely cause of such a problem is a conflict with a theme or plugin.
Try temporarily reverting to the default WordPress theme (Twenty Fourteen) to see if this helps.

(2) If not, then try temporarily deactivating all plugins other than WP-Juicebox and reactivate them one-by-one (checking WP-Juicebox's functionality after each one) to see if you can find the source of the conflict.

(3) Please try clearing your browser's cache and trying again.
This will ensure that your browser fetches and uses the most recent versions of the WP-Juicebox files from your web server.

(4) If you use the BulletProof Security plugin, then this may be the cause of your problem and you will need to add a skip/bypass rule to the .htaccess file in your root directory as follows:

# Juicebox skip/bypass rule
RewriteCond %{REQUEST_URI} ^/wp-content/plugins/wp-juicebox/ [NC]
RewriteRule . - [S=13]

(5) If you do not use the BulletProof Security plugin, then please check your .htaccess file for an entry such as:

<Files *.php>
    deny from all
</Files>

If you find such an entry, either comment it out or remove it.

(6) Also, try checking the permissions of the files and folders in the 'wp-content/plugins/wp-juicebox/' directory on your web server to make sure that they are not too restrictive. Default permissions of 755 for folders and 644 for files should be fine.

Hopefully one of these suggestions will help.

3,264

(16 replies, posted in Juicebox-Pro Support)

This issue has now been logged as a bug and it will hopefully be fixed in the next version (although I do not know when it will be released). Unfortunately, I do not know of a workaround at the moment.

3,265

(3 replies, posted in Juicebox-Lite Support)

At the moment, your web page uses the following code:

<script src="jbcore/juicebox.js"></script>

Therefore, the 'juicebox.js' file should be in this location on your web server: http://designcuisine.macyscatering.com/gallery/jbcore/juicebox.js
... but going directly to that location in a browser results in an error 404 (file not found).
It looks like your gallery files have not been uploaded to the correct location on your web server.

If you are trying to manually embed a gallery into a WordPress post, then I would recommend using the baseUrl method of embedding as documented here.
Essentially, you would create a Juicebox-Pro gallery on your computer with JuiceboxBuilder-Pro, upload the complete gallery folder (not just the contents) to your web server and paste the baseUrl embedding code into the body of your WordPress post making sure that the method of entry is 'Text' rather than 'Visual'.
It does not matter where on your web server you upload your gallery folder to as long as the two paths within the embedding code (the path to the 'juicebox.js' file and the baseUrl itself, pointing towards the gallery folder) are correct.

Alternatively, you could use the dedicated Juicebox plugin for WordPress, WP-Juicebox, which allows you to create and edit Juicebox galleries within the WordPress Dashboard. All the embedding code is automatically handled by the plugin and there is no need to worry about any manual coding.
WP-Juicebox can be downloaded from this web page. Instructions for use are on the same page.

Am I incorrect in thinking; by using my Flickr account, my images are already online so I do not need to upload them?

That is correct. If you want to source your Juicebox-Pro gallery with images from your Flickr account, then you can use set useFlickr="TRUE" and use the other Flickr configuration options (in the Lite and Flickr Pro sections) to point towards them.

With Juicebox, you can create as many individual galleries as you like but you would need to link them together manually (as you are currently doing) using techniques such as those in the Embedding Multiple Galleries support section.
Juicebox-Pro does not come with any automated method of linking together multiple galleries.

You could perhaps use the solution from this forum thread whereby thumbnails are turned into links to different gallery pages (so a single gallery gallery could act as an index to other galleries) but please bear in mind that Juicebox was not designed with this in mind and you may run into unforeseen problems (and it may take just as much maintenance as your current method).

An alternative solution would be to use another one of our products: Showkase.
Showkase is a PHP web application which would allow you to create a complete portfolio web site online using a web browser interface.
Showkase has full support for Juicebox-Pro and the galleries can be created within the application itself (or created with JuiceboxBuilder-Pro and then imported into Showkase).
You can create gallery index pages and have as many galleries listed on each index page as you wish.
Each gallery is represented by a thumbnail image with the gallery title displayed below and the gallery is opened when the user clicks on the image.
(Showkase also has the ability to create non-gallery pages such as 'About', 'Contact' and 'Basic' pages where you can enter information about yourself and contact details.)

All of this is done automatically within the interface without the need for any manual coding at all.
If you would like to take a look around the Showkase interface, you can log into the Live Demo Admin here.

Demo sites can be found here and a sample Gallery Index page can be found here.

Showkase can be purchased as Showkase-Standard (which comes with Juicebox-Lite and SimpleViewer-Standard, the free versions) or Showkase-Pro (which comes with Juicebox-Pro and SimpleViewer-Pro). The only difference between Showkase-Standard and Showkase-Pro is the bundled viewers.
As you already have Juicebox-Pro, you could purchase Showkase-Standard and upgrade it to use your Juicebox-Pro files by following the instructions here.

I hope you find this information useful.

I am glad that you have been able to resolve your problem. Thank you for posting back to let me know.
Just to shed some more light on the problem, there is currently a known bug whereby elements which have explicitly been assigned a CSS 'position' are not covered when the gallery is expanded either from the Splash Page or by clicking the Expand Button (they should be). This bug has already been addressed and will be fixed in the next version of Juicebox (although I do not know when it will be released).
In the meantime, the workaround is, as you have discovered, to set expandInNewPage="TRUE" so that, when the gallery is expanded, it is displayed on a page of its own rather than on top of the embedding page.

3,268

(2 replies, posted in Juicebox-Lite Support)

You can create a gallery manually (using the 'web' gallery from the download zip package as a template) by following the instructions here (with no need to use JuiceboxBuilder-Pro).
You can then embed the gallery into a web page by following the instructions here.

When creating a gallery manually, you would normally list the images to be displayed in the gallery using <image> tags in a static XML file. However, you could dynamically generate the gallery's XML file with a server-side scripting language. An example of how this could be achieved can be found in this forum post. It uses PHP to display all images in a designated folder. However, you could use a different scripting language and could pull in image URLs from a completely different source if you like. As long as your gallery's XML file uses the correct format (see the 'web/config.xml' file for an example), the images should display fine.

This will work equally well with both Juicebox-Lite (the free version) and Juicebox-Pro so you could try it out with Juicebox-Lite before purchasing Juicebox-Pro.
Juicebox-Lite can be downloaded from this web page.

I hope this helps.

3,269

(2 replies, posted in Juicebox-Pro Support)

1. The back button icon does not display. Instead you see something and the link is there, but not the icon.

Your gallery uses the Juicebox-Pro v1.4.2 'juicebox.js' file but the 'theme.css' file (set via your themeUrl) is from v1.3.3.
Both the JavaScript and CSS files should be from the same version. (I would recommend v1.4.2 over v1.3.3 due to the number of bugs fixed since v1.3.3. Please see the Version History for a full list of changes.) Once you upgrade your gallery's theme file, the Back Button should hopefully display OK.
If you have not made any customizations to the 'theme.css' file, then you can just remove the themeUrl from your embedding code and make sure that your gallery uses the complete stock 'jbcore' folder from the Juicebox-Pro v1.4.2 download zip package ('juicebox_pro_1.4.2/web/jbcore/').

2. Can I display the back button only on the expanded gallery? I have the gallery embedded on a page and the back button does not make sense there, but it is needed on the expanded gallery.

Juicebox-Pro uses only one set of configuration options for both normal and expanded modes.
Once expanded, a gallery can be closed by clicking the 'Expand' button on the Button Bar (which, in expanded mode, changes its icon and has 'Close Gallery' as rollover text).
If you want, you can change the icons used by following the Using Custom Icons instructions. You can also change the rollover text using the languageList configuration option.

Strictly speaking, it is possible to display the Back Button only in expanded move but it would require knowledge of JavaScript, CSS and use of the Juicebox-Pro API.
To see this in action, create a sample gallery using JuiceboxBuilder-Pro and use the following as the gallery's HTML index page:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" id="jb-viewport" content="minimal-ui" />
        <style type="text/css">
            body {
                margin: 0px;
            }
        </style>
        <script type="text/javascript" src="jbcore/juicebox.js"></script>
        <script type="text/javascript">
        var jb = new juicebox({
            backButtonPosition: "TOP",
            backButtonUrl: "http://www.example.com/",
            backButtonUseIcon: "TRUE",
            containerId: "juicebox-container",
            galleryHeight: "400",
            galleryWidth: "600"
        });
        jb.onInitComplete = function() {
            setTimeout(function(){
                $('.jb-go-back').hide();
            }, 1000);
            jb.onExpand = function(expanded) {
                expanded ? $('.jb-go-back').show() : $('.jb-go-back').hide();
            };
        };
        </script>
        <title>Test</title>
    </head>
    <body>
        <div id="juicebox-container"></div>
    </body>
</html>

This may not be ideal (as the Back Button is initially visible when the gallery is first loaded and before it disappears) but please remember that Juicebox was not designed with this in mind.

In any case, it sounds like using the Expand/Close button may be what you are looking for.

3,270

(8 replies, posted in Juicebox-Pro Support)

Your gallery is embedded into your photogallery_Miami2014.html web page but there is no og:image meta tag in that web page.
Add an og:image meta tag (such as the one in my post above) to the <head> section of your photogallery_Miami2014.html web page pointing towards an image you would like to use for the sharing window (using an absolute URL) and the image should be used by Facebook.

That's great!
Thanks for posting back to let me know.

I missed the last part of your post and will try that new code now.

It looks like I was editing my first post whilst you were posting your reply.

If I do (1) the gallery looks fine full size but as you make the page smaller the space appears above and below the image.

This is normal. The shape of your gallery changes (when the browser window's dimensions change) but the shape of your image does not.

If I do (2) and use FILL it works, but as you said, the images are cropped.

If you want the image to fill the gallery's image area without cropping, then the shape of the image must match the shape of the gallery's image area. Otherwise, the image will be cropped (if you want to fill the image area) or space will be introduced (if you want the image to be scaled to fit within the image area without cropping).
The only way to ensure that the shape of the gallery's image area matches the shape of your images is to control the gallery's dimensions (either by fixing the gallery's dimensions using absolute pixel values or by assigning new dimensions to your gallery using JavaScript whenever the browser window is resized).

Is the best option to use a splash page and force users to view the gallery fullsize?

This would certainly be another option.

When the page size is reduced, it is responsive and there is no space before and after the image, but the gallery (the stage) gets much smaller than the rest of the column.

In your case (with a two column layout), you do not want the gallery's width to be a percentage of the entire window width (which you currently use) but rather it should always be 100% of its parent container's width.
Try changing:

var galleryWidth = parseInt(windowWidth * 0.425);

... to something like:

var galleryWidth = parseInt($('#article').width());

Hopefully this will help.

3,273

(8 replies, posted in Juicebox-Pro Support)

Facebook uses the data from Open Graph meta tags to populate the sharing window.

The thumbnail image displayed in the Facebook sharing window is determined by the og:image tag.

When you create a Juicebox-Pro gallery with JuiceboxBuilder-Pro, Open Graph tags are included in the gallery's 'index.html' file (and the first image in the gallery is used as the Facebook thumbnail).
The tags will looks something like this.

<!-- START OPEN GRAPH TAGS-->
<meta property="og:title" content="Gallery Title" />
<meta property="og:type" content="website" />
<meta property="og:url" content="Share Url" />
<meta property="og:image" content="Share Url/images/IMG_1116.jpg" />
<meta property="og:description" content="Gallery Description" />
<!-- END OPEN GRAPH TAGS-->

og:title uses the Gallery Title ('Customize -> Lite').
og:url uses the Share Url ('Customize -> Sharing').
og:image uses the Share Url and appends the relative path to the first image in the gallery.
og:description uses the Gallery Description ('Customize -> General').

If you manually add an og:image tag to your web page, then please make sure that the content is in the form of an absolute URL (such as http://www/example.com/images/image.jpg) and not a relative URL.

After adding an og:image tag to your web page, you may need to clear Facebook's own cache of your web page (so that the new image is used) by entering your web page's URL into Facebook's Open Graph Debugger.

Please see this FAQ which may help:
My Juicebox gallery shows too much space above or below the main image, how do I fix this?

If your gallery is responsive and its dimensions change depending on the size of the user's browser window, then you essentially have no control over the size and shape of your gallery. Juicebox will, by default, scale images to fit within the gallery's image area (no matter what its size), respecting their aspect ratios and without cropping. If the aspect ratio of the image does not match that of the gallery's image area, then there will be space to the top and bottom or to the left and right of the image.
The easiest ways to avoid this would be to:
(1) Use absolute pixel values (rather than percentages) for the gallery's dimensions and make sure that the aspect ratio of the gallery's image area matches that of the images themselves.
... or:
(2) Change the imageScaleMode (in JuiceboxBuilder-Pro's 'Customize -> Main Image' section) to a value such as 'FILL' so that Juicebox always fills the image area (although please note that cropping may occur).

A further option would be to allow your gallery's dimensions to scale (when the browser window's width changes) but for its aspect ratio to always remain the same. This would require some JavaScript code to resize the gallery, maintaining its aspect ratio when the browser window is resized. (This would not ordinarily happen. If you change the width of your browser window, a div on a web page may have its width altered but not its height.)
Try the following.
Create a sample gallery with JuiceboxBuilder-Pro and use the following code as the gallery's 'index.html' page.

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" id="jb-viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <style type="text/css">
            body {
                margin: 0px;
            }
            #wrap {
                width: 100%;
            }
        </style>
        <script type="text/javascript" src="jbcore/juicebox.js"></script>
        <script type="text/javascript">
            var jb;
            function doLayout() {
                var windowWidth = parseInt(window.innerWidth ? window.innerWidth : $(window).width(), 10);
                var galleryWidth = parseInt(windowWidth * 0.8, 10);
                var galleryHeight = parseInt(galleryWidth / 2, 10);
                $('#wrap').width(galleryWidth);
                $('#wrap').height(galleryHeight);
                if (jb) {
                    jb.setGallerySize(galleryWidth, galleryHeight);
                }
            }
            $(document).ready(function() {
                $(window).resize(doLayout);
                jb = new juicebox({
                    containerId: "juicebox-container"
                });
                doLayout();
            });
        </script>
        <title>Test</title>
    </head>
    <body>
        <div id="wrap">
            <div id="juicebox-container"></div>
        </div>
    </body>
</html>

The '0.8' value is just an arbitrary width for the gallery (80%) for this example. You can change this to whatever you like.
The aspect ratio in the above example is 2:1 (set by the '2' in the line var galleryHeight = parseInt(galleryWidth / 2, 10);).
Again, you can change this to whatever you like.
I hope this points you in the right direction and that you are able to implement a suitable solution into your own web page.

3,275

(21 replies, posted in Juicebox-Pro Support)

Sorry. It looks like there was a problem with the original file.
Please try downloading the file again (different file, same link as before). It should work this time (and there is no need to rebuild any galleries - all you need to do is swap the 'wp-juicebox.php' file).