I'm glad you've got JuiceboxBuilder-Pro up and running.
Thank you for posting back to let me know.
You are not logged in. Please login or register.
Juicebox Support Forum → Posts by Steven @ Juicebox
I'm glad you've got JuiceboxBuilder-Pro up and running.
Thank you for posting back to let me know.
The multi-size image support is a feature of JuiceboxBuilder-Pro only and is not available in any of the plugins.
Unfortunately, as you are aware, the Juicebox plugin for Lightroom cannot export multiple image resolutions at once.
Image sizes (and whether small or large images are required) are saved in preset files. Try selecting the 'Small Images' and 'Large Images' checkboxes and changing some image sizes on the 'Images' tab, save a preset ('Presets -> Save Preset') and open the preset file in a plain text editor. You should see entries such as the following:
useLargeImages="true"
largeImageWidth="2000"
largeImageHeight="1000"
However, if you load a preset which does not include useSmallImages="true" or useLargeImages="true", then the 'Small Images' and 'Large Images' checkboxes will be deselected and only medium images will be saved to the gallery folder.
Be sure to select the 'Small Images' and 'Large Images' checkboxes (and enter your required image sizes) before saving a preset file.
Hopefully this will help.
If I load a preset for the configuration, I have issues with expandedBackgroundColor -- the plugin exports black/1 whereas (as reported in another post) JBB does not.
Please see my reply to your query in this forum thread.
The Lightroom plugin's default value for expandedBackgroundColor is the same as JuiceboxBuilder-Pro's default value ('222222' with opacity '1'). If you change this at any point, then Lightroom will remember the last used value (like it will for other Web Engine input fields).
Like JuiceboxBuilder-Pro, if you set the expandedBackgroundColor to '222222' with opacity '1', it will not be written to the 'config.xml' file but if you change it to black ('000000' with opacity '1'), then the following will be written to the 'config.xml' file:
expandedBackgroundColor="rgba(0,0,0,1)"
I've just double-checked this with the current versions of both JuiceboxBuilder-Pro (v1.4.3) and the Lightroom plugin (v1.4.3.0) and everything seems to be working correctly.
The default values for both backgroundColor and expandedBackgroundColor in JuiceboxBuilder-Pro are both '222222'. These values are noted as defaults in the Config Options page.
I've just double-checked this in my own installation. When I click the color box next to 'Background Color' (in the 'Customize -> Lite' section) or 'Expanded Background Color' (in the 'Customize -> General' section), '222222' is displayed as the default value.
Default values are not written into the 'config.xml' file but if you change both of these values to black ('000000' with opacity '1'), then the following values are written to the 'config.xml' file:
expandedBackgroundColor="rgba(0,0,0,1)"
backgroundColor="rgba(0,0,0,1)"
... and the following is also included in the embedding code in the 'index.html' page:
backgroundColor: 'rgba(0,0,0,1)'
If you do not see this behavior, then try uninstalling and reinstalling JuiceboxBuilder-Pro and make sure that you are using the most recent version of JuiceboxBuilder-Pro (v1.4.3) to ensure that any bugs present in previous versions which have since been fixed are not contributing to your problem. You can check which version you are using by going to 'Help -> About JuiceboxBuilder-Pro' from the drop-down menu at the top.
If necessary, instructions for downloading the current version and upgrading JuiceboxBuilder-Pro can be found on the Upgrading Juicebox support page.
If I set the component to be 'transparent' to defer to CSS for the (embedded) gallery I get, e.g., a white background in embedding.
If you set a gallery's background to be transparent (by setting its opacity to '0'), then, by default, the background will be white (the default background color of an empty tab/window in a browser) unless you have something else below the gallery the gallery using HTML and CSS.
Unfortunately, the default is not in config.xml and the fullscreen expansion ends up white, apparently taken from the embedded gallery.
Please note that if you set the expanedBackgroundColor to be transparent and also set useFullscreenExpand="TRUE", then the actual expanded background color might be white or black depending on the default color that the browser chooses to use when the Fullscreen API is used. (For example, Chrome uses white and Firefox uses black.) For consistency when using useFullscreenExpand="TRUE", I would recommend using an expandedBackgroundColor with an opacity of '1' (fully opaque).
The embedding code for your 'Texas Sculpture' gallery on this page: http://morethansnapshots.com/LRGallerie … index.html
... does not contain a configUrl or baseUrl so Juicebox looks for a file named 'config.xml' in the same directory as the HTML page containing the embedding code.
Therefore, there should be a 'config.xml' file here: http://morethansnapshots.com/LRGallerie … config.xml
However, going directly to that location in a browser results in an error 403 (permission denied).
It looks like your gallery's 'config.xml' file might be in the correct location on your web server but that its permissions are too restrictive. Check the permissions of the file (and its parent folders) on your web server (perhaps using a dedicated FTP program such as Filezilla of via your web hosting account's online CPanel).
Default permissions of 755 for folders and 644 for files should work fine.
Hopefully this will solve your problem.
Only JuiceboxBuilder-Lite has an 'Upgrade to Juicebox-Pro!' button. JuiceboxBuilder-Pro does not feature such a button.
I realise that you are unable to click 'New Gallery' or 'Open Gallery' but does the splash page read 'JuiceboxBuilder-Pro' when you start the application? Does the text on the application's title bar also read 'JuiceboxBuilder-Pro'? How about 'Help -> About...' from the drop down menu at the top?
It sounds like JuiceboxBuilder-Lite is somehow getting tangled up with JuiceboxBuilder-Pro although, under normal circumstances, JuiceboxBuilder-Lite and JuiceboxBuilder-Pro can be installed an run side-by-side on the same computer without issue.
I'm sure you've tried many things many times but I would give it one more go.
Make sure that you uninstall both JuiceboxBuilder-Lite and JuiceboxBuilder-Pro. (Delete the 'JuiceboxBuilder-Lite' and 'JuiceboxBuilder-Pro' files from the Applications folder and empty your Trash.)
Then search your hard drive for the term 'JuiceboxBuilder' (rather than 'JuiceboxBuilder-Pro' this time) and manually delete everything found.
Double-check that the following folders have been deleted:
/Users/your_username/Library/Application Support/Adobe/AIR/ELS/JuiceboxBuilder-Lite
/Users/your_username/Library/Application Support/Adobe/AIR/ELS/JuiceboxBuilder-Pro
Now try reinstalling only JuiceboxBuilder-Pro, allowing the application to install to the default location.
However, when I click on the first image, it doesn't expand automatically to full-screen, but kind of jumps all over the page.
If you have a gallery which exhibits this behavior, please post its URL so that I can take a look and investigate further. (Your '/personal/' gallery still uses a Splash Page.)
If there is any problem with conflicting CSS, then the easiest way to avoid this is to use the Splash Page and set expandInNewPage="TRUE" so that when the gallery is expanded, it is expanded on a new page of its own where it cannot be affected by any CSS on your embedding page.
Also, I notice that your gallery uses Juicebox v1.4.3.
The latest version is actually v1.4.3.2. We have released a couple of hotfix versions to address a couple of bugs relating to pages jumping to the top when scrolling or closing expanded gallerieson iOS 8 devices.
You might like to try upgrading your gallery to the latest version to see if this helps.
Instructions for downloading the latest version and upgrading existing galleries can be found on the Upgrading Juicebox support page. (The latest zip file is named 'juicebox_pro_1.4.3.2.zip' and the version number is noted in the comments at the top of the 'jbcore/juicebox.js' file.)
Is there any way to set the thumbnails to expand to full-screen on first click when showSplashPage is set to "NEVER"?
Juicebox was not designed to allow the gallery to expand on a thumbnail click. You could try to achieve this using the available methods in the Juicebox-Pro API but you might run into difficulties.
To see an example of this in action, create a test gallery with JuiceboxBuilder-Pro and replace the gallery's 'index.html' file with the code below:
<!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({
containerId: "juicebox-container",
galleryHeight: "400",
galleryWidth: "600",
screenMode: "AUTO",
showExpandButton: "TRUE",
showSmallThumbsButton: "TRUE",
showSmallThumbsOnLoad: "TRUE",
showSplashPage: "NEVER"
});
if (jb.getScreenMode() === 'SMALL') {
var fullscreen = false;
var thumbs = true;
jb.onExpand = function(expanded) {
if (fullscreen && !thumbs) {
jb.toggleThumbs();
}
fullscreen = !fullscreen;
};
jb.onImageChange = function(e) {
if (!fullscreen) {
jb.toggleExpand();
}
};
jb.onShowThumbs = function(showing) {
thumbs = showing;
};
}
</script>
<title>Test</title>
</head>
<body>
<div id="juicebox-container"></div>
</body>
</html>
This will expand the gallery each time a new image is selected (in Small Screen Mode only) whether from the thumbnail page or a main image page. There is no way to distinguish whether an image is being selected from a thumbnail page (via a tap) or from a main image page (via a swipe).
Also, in order to include this functionality within a WP-Juicebox page, you would need to:
(1) Set the required configuration options as normal (Lite Options in the interface and Pro Options in the 'Pro Options' text area).
(2) Add the following code (in 'Text' mode, not 'Visual') below the Juicebox shortcode in the body of your WordPress page or post.
<script type="text/javascript">
if (jb_4.getScreenMode() === 'SMALL') {
var fullscreen = false;
var thumbs = true;
jb_4.onExpand = function(expanded) {
if (fullscreen && !thumbs) {
jb_4.toggleThumbs();
}
fullscreen = !fullscreen;
};
jb_4.onImageChange = function(e) {
if (!fullscreen) {
jb_4.toggleExpand();
}
};
jb_4.onShowThumbs = function(showing) {
thumbs = showing;
};
}
</script>
In the above example, 'jb_4' is used as the variable name for the 'juicebox' object. The '4' is the gallery id.
If your gallery id is 25, then replace all the instances of 'jb_4' with 'jb_25'.
I hope this points you in the right direction.
I'm glad to hear that it worked.
Many thanks for letting me know.
Many thanks for the additional information.
It certainly looks like Reading View in IE11 is the source of the problem.
Try adding the following line of code to your web page's <head> section. Once implemented, the Reading View icon should not appear in the address bar.
<meta name="IE_RM_OFF" content="true">
This code was taken from the Reading View Guidlines support page: http://ie.microsoft.com/testdrive/browser/readingview/
(Click the '</> Code' tab and scroll down to the 'Opt Out' section at the bottom.)
Hopefully this will help.
2) This is not possible, because all page is responsive.
Unless your web page always fills the browser's height and width completely (no matter what its size and shape) with no vertical or horizontal scrollbars, then you could try giving your gallery a width of 100% but a fixed height. If your web page is responsive but allows for vertical scrolling, then this may be a quick and easy solution to your problem.
3) Page is loaded with gallery tab open by default, so it is not possible to load gallery on click.
You could load the gallery when the page is loaded by calling the loadGallery() function in the $(document).ready(function() {}) section (alongside the click handler) e.g.:
$(document).ready(function() {
loadGallery();
$('#photo').click(function() {
loadGallery();
});
});
But may be it is possible to force gallery to refresh dimensions each time when the 'photo' tab is clicked?
That's another possible solution.
You could just load the gallery once on your page (rather than using the loadGallery() function in my suggestion above), assign a variable name to your 'juicebox' object (such as 'jb' in the example below) and then use the Juicebox-Pro API setGallerySize() method to set the gallery size when the 'photo' tab is clicked. However, please note that setGallerySize() accepts only absolute pixel values (and not percentages) so you would have to use some custom JavaScript code to fetch the size of the gallery's parent container (and/or browser window dimensions) in order to determine what the gallery's actual size (in pixels) should be.
The structure (without the actual calculations for the gallery width and height which will be unique to your own web page's layout) for such a solution might look something like this:
<script src="jbcore/juicebox.js"></script>
<script>
var jb = new juicebox({
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "600px",
backgroundColor: "rgba(34,34,34,.5)"
});
$(document).ready(function() {
$('#photo').click(function() {
var galleryWidth; //Calculate gallery width here and assign value to galleryWidth variable
var galleryHeight; //Calculate gallery height here and assign value to galleryHeight variable
jb.setGallerySize(galleryWidth, galleryHeight);
});
});
</script>
<div id="juicebox-container">
The problem is likely to be that when you change the browser window size on the 'video' tab, the Juicebox parent container has no dimensions at that point (due to setting display: none;) and if your Juicebox gallery has a width of 100%, it will set its width to be 100% of 0px which is 0px. Changing the tab back to 'photo' does not change the browser window size so the gallery will look odd until the browser window size is changed again.
Possible solutions:
(1) Try setting only CSS visibility rather than both visibility and display.
(2) Set your gallery's dimensions to be fixed pixel values rather than percentages.
(3) Load your gallery on demand when the 'photo' tab is clicked (rather than when the page is loaded).
If you want to implement Suggestion #3 above, put your gallery's embedding code in a JavaScript function and add a click handler to your 'photo' tab to run the function when the tab is clicked.
For example, something like the following:
<script src="jbcore/juicebox.js"></script>
<script>
function loadGallery() {
new juicebox({
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "600px",
backgroundColor: "rgba(34,34,34,.5)"
});
}
$(document).ready(function() {
$('#photo').click(function() {
loadGallery();
});
});
</script>
<div id="juicebox-container">
Juicebox comes with its own bundled version of jQuery (within the 'juicebox.js' file) so basic jQuery functionality is available as soon as the 'juicebox.js' file is loaded in the page (and without the need to explicitly include a separate jQuery JavaScript file).
However, if your web page uses any jQuery code at all, I would certainly recommend including a separate jQuery JavaScript file (just in case we remove any jQuery functionality from the 'juicebox.js' file in the future).
It certainly sounds like your embedding code has been entered as plain text rather than as HTML code.
The most likely explanation for the embedding code being be visible on screen when you view your web page in a browser would be if Dreamweaver had modified the code (escaping the XML entities) which would happen if the embedding code had been entered as text rather than code, thereby preventing a browser from parsing it as code and resulting in it just being displayed instead.
Please double-check that you have entered the embedding code as raw HTML (to ensure that Dreamweaver does not modify the code at all) and if you continue to experience difficulties, please post the URL to your web page so that I can take a look at the problem for myself and help further. Thank you.
Thank you for providing the URL to your gallery's web page.
You currently have two lots of embedding code on your '/favs/index.htm' web page (both embedding the same gallery into the same container).
Your first lot of embedding code starts at line 30 and your second lot of embedding code starts at line 120.
Remove the first lot of embedding code (lines 30 - 39 inclusive) and your audio should play only once.
You're just about there. However, the paths in your embedding code are incorrect (the baseUrl chould point towards the gallery folder and the path to the 'juicebox.js' should be within your gallery folder) and you need a comma after the baseUrl entry in the embedding code (so that the JavaScript picks up all the other options after it).
Just change:
<!--START JUICEBOX EMBED-->
<script src="/sliders/jbcore/juicebox.js"></script>
<script>
new juicebox({
baseUrl: "/sliders/jb-slider-01/"
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "100%",
backgroundColor: "rgba(18,18,18,1)"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->
.. to the following (the paths I have used below are relative to your '/t/mm-ex/index.html' page):
<!--START JUICEBOX EMBED-->
<script src="sliders/jb-slider-01/jbcore/juicebox.js"></script>
<script>
new juicebox({
baseUrl: "sliders/jb-slider-01/",
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "100%",
backgroundColor: "rgba(18,18,18,1)"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->
You might find that you need to change the gallery's height to a fixed value. Please see this note regarding Using Percentage Heights.
Once you get it working, you can delete the other two lots of embedding code on your web page (which are currently commented out) above the embedding code which is active.
I cannot replicate the problem you reported with this test gallery in IE11 or Chrome 40 (or Firefox 36.0, Opera 27 or Safari 5.1.7): http://juicebox.net/demos/pro/full/?pla … nLoad=TRUE
When I refresh the page (by clicking the reload button in the browser or by pressing F5 or Ctrl + F5), the original music stops and when the page is reloaded, the music starts again.
Please make sure that you are using the latest version of Juicebox-Pro (v1.4.3).
Instructions for downloading the latest version and for upgrading existing galleries can be found here.
Does the problem occur in your browsers with the test gallery? http://juicebox.net/demos/pro/full/?pla … nLoad=TRUE
If you continue to experience difficulties, then please post the URL to your gallery so that I can try to hear the problem for myself and investigate further. Thank you.
It would be a little difficult to simply replace the image that is currently on your web page with a Juicebox gallery.
The image you refer to is not displayed with a standard HTML <img> tag but is actually a background (set via CSS) for a <div> which contains other content (such as your navigation menu).
If you replaced this <div> with a Juicebox gallery, then you would lose all its content.
I would recommend that you keep the 'header-wrapper' <div> in place, remove the background image by deleting the following entries from the #header-wrapper section in your styles.css file:
background: url('../sydney-wedding-photography-images/sydney-wedding-photo-video-sydney-harbour.jpg');
background-size: cover;
background-position: top center;
background-image: url(../sydney-wedding-photography-images/sydney-wedding-photo-video-sydney-harbour.jpg);
... and embed your Juicebox gallery (following the instructions in the Embedding Guide) below your <nav id="nav"> or your <header id="header"> section.
I would recommend that you embed your gallery using the baseUrl method of embedding as documented here. This method of embedding allows you to keep the gallery files inside the gallery folder and you would upload the entire gallery folder (not just the contents) to your web server. Also, it does not matter where on your web server you upload your gallery folder to as long as the paths within the embedding code (the path to the 'juicebox.js' file and the baseUrl itself, pointing towards the gallery folder) are correct.
As an example, if you have a gallery folder named 'my_gallery_folder' and you upload the entire gallery folder to your web site's root directory, then you would be able to use the following embedding code. (This code could be used in any page throughout your web site without modification. The leading slashes in the paths denote your root directory.)
<!--START JUICEBOX EMBED-->
<script src="/my_gallery_folder/jbcore/juicebox.js"></script>
<script>
new juicebox({
baseUrl: "/my_gallery_folder/",
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "600",
backgroundColor: "#222222"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->
If you want to leave your current home page in place whilst you try things out, just make a copy your 'index.html' file (in the same directory) and use the copy as a work in progress.
Your 'header-wrapper' <div> currently has a fixed height (the image does not scale when you change the browser window's height) but is responsive horizontally so to do likewise with your gallery, just give your gallery a fixed height and a width of 100%.
I hope this helps.
There seems to be a few different issues going on here and I think we might be at cross purposes with at least one of them.
When you originally said "I have another news section on the same page and struggle to page down and see this", I thought the problem was that you could not scroll down past the gallery to see what was below the gallery on the page.
This is why I created the test page [Test gallery removed.] - to see if you could scroll down the page past the gallery to see the text below the gallery. The fact that the gallery had an automated slideshow was just incidental (I used it because you used it in your own gallery and wondered if it could be the cause of the problem: "think it is due to automation of photo gallery?"). We seem to have been sidetracked into a problem with AutoPlay (the automated changing of images within a gallery) rather than the original 'scrolling down a page' issue.
As I noted earlier, maybe the AutoPlay is stopping when you scroll down the page and touch the gallery. (If you tap on the gallery to scroll down the page, Juicebox might see this as the start of a swipe gesture to change the image and the AutoPlay will stop.)
It might be a good idea to take a step backwards just now and clarify a few things.
Using my test page: [Test gallery removed.]
(1) On your iPad, can you scroll down past the gallery to see the text below the gallery?
(2) On your Windows phone, can you scroll down past the gallery?
(3) On your iPad, does the AutoPlay work (do images change automatically)?
(4) On your Windows phone, does the AutoPlay work?
For (3) and (4) above you could try this test gallery instead: [Test gallery removed.]
Same gallery, just no text on the page so no need to scroll down the page and perhaps accidentally stop the AutoPlay.
Also, have you tried loading any other content into your iframe yet to see if your other layout problem is a general iframe problem or directly related to Juicebox?
I'm hopeful that we can narrow the problems down and figure out exactly what's going on.
Once the bug has been fixed, you will be able to set buttonBarPosition="OVERLAY_IMAGE" and captionPosition="BELOW_IMAGE" (for the Button Bar to autohide and for the caption area to always be displayed).
If you would like to be notified when new versions are released, then please join the mailing list at the foot of our homepage, keep an eye on our Facebook page, follow us on Twitter @JuiceboxGallery or subscribe to our blog RSS feed.
Thank you for sending me a screenshot of your problem.
From the look of the screenshot, it certainly looks like Mobile Safari is having a problem with your percentage-width iframe.
What generation of iPad do you have and what version of iOS does it have installed? Perhaps there is a problem with your particular version of Mobile Safari which can be fixed by upgrading your version of iOS.
I suspect that you might have similar sizing issues no matter what content you load into your iframe.
Try loading a different web page (such as http://juicebox.net/) into your iframe to see how your main page looks.
Does the size of the iframe look OK in Mobile Safari with content other that the gallery loaded into it?
Your iframe has a width of 100% but the browser will need to know what its actual width should be 100% of, so please make sure that all parent containers of your iframe have widths defined using CSS. Also, try including the dimensions of your iframe's parent containers as inline CSS (similar to the note for Using Percentage Heights but with widths instead).
This forum thread regarding "How to get an IFrame to be responsive in iOS Safari?" might also be of interest: http://stackoverflow.com/questions/2308 … ios-safari
However, I would still recommend embedding your gallery directly in your web page (rather than using an iframe).
Maybe you could try this again.
With regard to the scrolling issue, if you can scroll past the gallery in my test page ([Test gallery removed.]), then the problem may lie somewhere within the code on your web page.
If you load the gallery into an iframe, then try embedding the gallery directly into your web page to see if the scrolling problem still occurs. (There may be some kind of problem scrolling past iframes on a Windows phone.)
If you already embed the gallery directly in your web page, then try removing all external CSS and JavaScript files from your page, one at a time, and check the functionality after removing each one until you find the source of the conflict.
I hope these notes help.
It sounds like you might have a CSS conflict (global CSS rules on your web page that the gallery is inheriting).
However, if this were the case, then I would expect results to be consistent across different browsers.
First of all, please clear the caches of both your browsers to ensure that they are both fetching and using the most recent versions of your web pages from your server.
Differences in the display of web pages in different browsers can often be attributed to HTML errors on the page (some browsers may be more tolerant towards errors than others and might handle them differently).
Try validating the code on your web page with the W3C Markup Validation Service and fix any errors reported. This may help. If not, then at least we can eliminate HTML errors as being a contributing factor to your problem.
Unfortunately, I do not have access to an iPad on which to test so if you continue to experience difficulties, perhaps you could upload screenshots somewhere of what you see in both Chrome and Mobile Safari so that I can at least see the problem for myself.
Many thanks.
Also, it's just a hunch but I've seen problems with percentage-dimension iframes before in Mobile Safari (though usually with height rather than width).
Try changing:
<iframe src="gallery/welcome/index.html" width="100%" height="275" frameborder="0" scrolling="no"></iframe>
... to:
<iframe src="gallery/welcome/index.html" style="width: 100%;" height="275" frameborder="0" scrolling="no"></iframe>
... to see if it helps.
It might not make a difference but it should be quick and easy to try.
The 'encode_url' function is, indeed, missing from the 'wp-juicebox.php' file. It will be reinstated in the next version.
In the meantime, my workaround above should work fine.
I cannot actually find an instance where the current version of NextGEN Gallery (v2.0.74) produces a URL which needs to be encoded. I'm pretty sure the 'encode_url' function is required only for backwards compatibility with older versions of NextGEN Gallery.
Many thanks for your suggestion.
However, I would encourage you to post suggestions for future versions in the Feature Requests forum thread.
This keeps all the ideas together and ensures that they are not overlooked by the developers. Thank you.
Please see this FAQ:
My Juicebox gallery shows too much space above or below the main image, how do I fix this?
If you have a 100% x 100% responsive gallery (like the gallery in your screenshot), then the size and shape of the gallery is entirely dependent on the user's browser window. You have no control over this at all.
If the image area within the gallery has a very different aspect ratio to that of the image being displayed, then there will be space at the top and bottom or left and right of the image.
You could either:
Set imageScaleMode="FILL" to fill the image area with the image (although cropping will occur), or...
Set your gallery's height to be a fixed pixel value (rather than a percentage) so that the image area is likely to have an aspect ratio closer to that of the image being displayed.
I hope this helps.
Thank you for reporting this problem.
I have logged a bug report with the developers and it should hopefully be fixed in the next version of Juicebox-Pro.
Unfortunately, the only workaround in the meantime would be revert to setting buttonBarPosition="OVERLAY" (although I realise that this was what you were trying to avoid in the first place).
Thank you for reporting this problem.
A quick fix would be to open WP-Juicebox's 'config.php' file in a plain text editor and change lines 77 - 78 from:
$image_url = $Juicebox->encode_url($base_url . $image_basename);
$thumb_url = $Juicebox->encode_url($base_url . 'thumbs/thumbs_' . $image_basename);
... to:
$image_url = $base_url . $image_basename;
$thumb_url = $base_url . 'thumbs/thumbs_' . $image_basename;
As long as your image filenames contain only web-safe (alpha-numeric) characters and not reserved characters, then everything should work OK.
However, I will investigate this problem further and will post back with my findings.
... especially if the caption does not fit it will cut off.
Try increasing the value of maxCaptionHeight (in JuiceboxBuilder-Pro's 'Customize -> Caption' section).
When captionPosition="BELOW_IMAGE" (or BOTTOM or BELOW_THUMBS), the value of maxCaptionHeight is used as the actual height of the caption area.
Maybe you can add an option to disable autohide the caption while remaining the autohide for the other overlay elements in a future version?
Please post suggestions for future versions in the Feature Requests forum thread.
This keeps all the ideas together and ensures that they are not overlooked by the developers. Thank you.
Another thing I noticed is that the controls (autoplay, sharing buttons etc) are positioned in the stage area (as an overlay in my case) and not positioned in the picture. Therefore sometimes they are outside of the picture if the gallery contains a smaller image then the other images. Is that something that could be fixed?
Try setting buttonBarPosition="OVERLAY_IMAGE" rather than using the default value of OVERLAY (in JuiceboxBuilder-Pro's 'Customize -> Button Bar' section).
Juicebox Support Forum → Posts by Steven @ Juicebox
Powered by PunBB, supported by Informer Technologies, Inc.