1,901

(5 replies, posted in Juicebox-Pro Support)

I switched to flickr because Picasa web didn't work anymore with Juicebox plugin (Wordpress).

Unfortunately, Google (who acquired Picasa) do not seem to allow access to new Google Photo Albums via the Picasa Web API although existing albums created prior to the acquisition can still be displayed via WP-Juicebox (as long as they have not been modified recently).

When I use a flickr album, the picture doesn't open in a separate window, but opens in flickr.

This is by design. When the 'Open Image' button is clicked for a Flickr gallery, the image's Flickr page is opened.
There is no way to change this behavior using any available configuration options. The code which handles this is buried deep within the 'juicebox.js' file which is obfuscated and cannot be modified.

All I can suggest at the moment is to perhaps suggest this alternative action for the 'Open Image' button in the Feature Requests forum thread.
This keeps all the ideas together and ensures that they are not overlooked by the developers.
I do not know the likelihood of any suggestions being implemented but this is certainly the best place for all ideas.
Thank you.

1,902

(1 replies, posted in Juicebox-Pro Support)

I notice that your panoramic thumbnail images have actual dimensions of ~170px x 50px and are being displayed in your gallery at 85px a 85px so they are therefore being dynamically scaled up (and losing quality) when the gallery is displayed to fill the required 85px height.

The Lightroom plugin will currently produce thumbnails which should look fine (and should not need to be scaled up) for images which have a maximum aspect ratio of 2:1.

If the plugin were just to increase the thumbnail dimensions (which are currently based on the thumbWidth and thumbHeight values), then it would produce (perhaps unnecessarily) larger thumbnails for all galleries (irrespective of whether or not panoramic images are used).

Unfortunately, it is not possible for the plugin to iterate over all gallery images before the thumbnails dimensions need to be set in order to determine the largest aspect ratio and calculate optimum values.

I'll investigate to see if there is a better way to have the plugin scale the thumbnail images.

At the moment, the best workaround would probably be to replace the thumbnails with custom ones (perhaps created with JuiceboxBuilder-Pro which resizes and crops the source images to create thumbnail images with the exact thumbWidth and thumbHeight dimensions).

Edit:
Please check your email. I have sent you a message. Thank you.

1,903

(8 replies, posted in Juicebox-Pro Support)

You're correct. Sorry. The link pointed towards the Showkase forum Feature Requests thread in error. Thank you for pointing this out.
I've fixed the link now so that it points correctly towards the Juicebox forum Feature Requests thread (http://juicebox.net/forum/viewtopic.php?id=5). I'm glad you found the right thread. Apologies for any inconvenience caused.

1,904

(5 replies, posted in Juicebox-Pro Support)

I'm glad that you've been able to successfully use a workaround.
As you say, it should hopefully only be a temporary measure until the problem is fixed.

Incidentally, setting imagePreloading="ALL" should be enough to work around the problem.
I notice that your gallery (the first one that you linked to above) does not set a value for imagePreloading but, instead, sets maxThumbColumns="52" (the number of images in your gallery). By not setting a value for imagePreloading, Juicebox-Pro will use its default value of PAGE and by setting maxThumbColumns="52", you are essentially telling Juicebox-Pro that there should be (a maximum of) 52 images per page. Therefore, all 52 images on the first page of thumbnails (all the images in your gallery) will be preloaded and this has the same result as setting imagePreloading="ALL".

1,905

(8 replies, posted in Juicebox-Pro Support)

@borut.podlipnik

You can change the shape of the thumbnails with thumbWidth and thumbHeight (via the 'Thumb Width' and 'Thumb Height' sliders in the 'Thumbnail' control panel). They do not need to be square but they will all be the same size as each other.

However, images in folder thumbs (probably created by Lightroom) are correct - not cropped!

The thumbnails exported by Lightroom are not cropped (as you have discovered). Lightroom uses the thumbWidth and thumbHeight values as maximum bounds when resizing the images and their aspect ratios are respected.
However, Juicebox will always dynamically scale the thumbnail images to fill the thumbnail dimensions (with cropping if the aspect ratios do not match) when the gallery is displayed.
Even though JuiceboxBuilder-Pro crops thumbnails to the exact thumbnail dimensions and Lightroom does not, if you view galleries (built with JuiceboxBuilder-Pro and Lightroom) with the same thumbWidth and thumbHeight values, the galleries (and thumbnails in particular) will look the same.
There is no way to change this.

The only thing you could do is create your own set of scaled-to-fit thumbnail images (in Lightroom, Photoshop or another imaging program) and replace the ones in the 'thumbs' folder.
Please bear in mind that it would still not be possible to have thumbnail images of different sizes. All thumbnail images will be displayed at the thumbWidth and thumbHeight dimensions. If you have images of varying aspect ratios, you may need to pad your thumbnail canvas with blank space (at the top and bottom or left and right) to fill the thumbnail dimensions.

If you like, you can 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.
I do not know the likelihood of any suggestions being implemented but this is certainly the best place for all ideas.
Thank you.

1,906

(5 replies, posted in Juicebox-Pro Support)

Unfortunately, you have encountered a known bug whereby flickrShowDescription captions are not displayed when the thumbnails are not visible on the page and only a certain number of images have been preloaded.

A bug report has been logged with the developers and the problem should hopefully be fixed in the next version.

The only workaround I've found so far is to set imagePreloading="ALL" (although if you have a large gallery or use large images, this might not be ideal).
A short description of imagePreloading can be found in the Main Image Options section of the 'Config Options' page.

I hope this is a suitable workaround for you until the problem is fixed.

1,907

(1 replies, posted in Juicebox-Pro Support)

how can I share one image not the gallery?

It is not possible to have the shared image's thumbnail displayed in the pop-up Facebook share window due to limitations imposed by Facebook on what data can be passed via their share URL. Only one thumbnail image can be used per web page. However, the shared link will still point towards the correct image within your gallery, though.

The image used in the pop-up Facebook share window is set using an Open Graph og:image meta tag in the <head> section of your web page, such as the following:

<meta property="og:image" content="http://www.example.com/images/thumbnail.jpg" />

Please see here for more details on the Open Graph protocol.

You can think of the og:image as being representative of the gallery as a whole so you could use an image which best represents your gallery. (The og:image does not need to be an image from the gallery.)

If you create a gallery with JuiceboxBuilder-Pro, an og:image meta tag will be automatically generated and included in the gallery's 'index.html' file (pointing towards the first image in the gallery). If you are embedding your gallery in an existing web page alongside other content, then you will need to add an og:image meta tag manually.

Although the thumbnail image displayed in the pop-up Facebook share window will always be the same one (specified via the og:image meta tag), the link being shared will still point correctly towards the shared image in the gallery. You should notice that the URL being shared ends with something like #2 or #17 where the number represents the image in the gallery. When a user clicks on a shared link, the corresponding shared image will be opened in the gallery.

Can I handle the click on share facebook button  and open another dialog?

If you really wanted to override Juicebox-Pro's click handler for the Facebook share button, you could try something like the following which will allow you to run your own custom JavaScript code when the Facebook share button is clicked.

<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: "juicebox-container",
        shareFacebook: "TRUE"
    });
    jb.onInitComplete = function() {
        $('.jb-bb-btn-facebook').off('click');
        $('.jb-bb-btn-facebook').click(function() {
            // Custom JavaScript code to be run when Facebook share button is clicked goes here
        });
    };
</script>

This uses the Juicebox-Pro API (specifically the onInitComplete event) to ensure that the Facebook share button is present in the DOM (Document Object Model) before any actions are performed on it.

Please note that Juicebox-Pro was not designed with this functionality in mind (user overrides for Button Bar buttons) and whilst you are free to use such modifications, they are not officially supported (and you may run into unforeseen problems that might have to be tackled along the way).

1,908

(4 replies, posted in Juicebox-Pro Support)

You're welcome. I'm glad that solved your problem.
Thank you for letting me know.

1,909

(3 replies, posted in Juicebox-Lite Support)

You're welcome.

1,910

(3 replies, posted in Juicebox-Pro Support)

If you wanted to sort the images only in specific galleries, then you'd really need to create a new variable for each gallery, check the variable when the images are fetched from Google and sort the images if necessary depending on the value of the variable. This would be much more complicated to implement (you'd need to make several changes across three different plugin files) and, if you have only one or two galleries that you'd like to sort, then it might be easier to just rearrange the images in the Google Photos interface (if that's possible).

1,911

(3 replies, posted in Juicebox-Lite Support)

By default, Juicebox will scale down large images to fit within the gallery's image area as large as possible whilst respecting their aspect ratios and without cropping. However, small images will not be scaled up (as this may decrease their visual quality).

If you find you have space surrounding you images, then make sure that your images are large enough that they would need to be dynamically scaled down slightly by Juicbox when the gallery is displayed. This will ensure that they are displayed as large as possible without cropping or stretching within the given area.

If you still have space to the top and bottom or to the left and right of your images, then please see this FAQ:
My Juicebox gallery shows too much space above or below the main image, how do I fix this?

Juicebox-Pro users have the option to change the way that images are scaled within the gallery's image area via the imageScaleMode configuration option. Possible values are SCALE_DOWN, SCALE, FILL, STRETCH and NONE.
Short descriptions of each of these values can be found in the Main Image Options section of the Config Options page.

Please note that imageScaleMode is a Pro-only option which is not supported by Juicebox-Lite (the free version).

1,912

(3 replies, posted in Juicebox-Pro Support)

As noted in the Picasa Web Albums Data API developer's guide:

Note: The entries in a feed are ordered based upon the display order on the web site.

There does not seem to be a method in the API to request images in a specific sort order.

You'd need to fetch the images first and then sort the array (by image filename) manually afterwards.

Try the following.
Open the plugin's 'wp-juicebox.php' file in a plain text editor, scroll down to line 1351 and replace:

function get_attachments_picasa($picasa_user_id, $picasa_album_name) {
    $attachments = array();
    $name = $this->remove_whitespace($picasa_album_name);
    $term = preg_match('/^[0-9]{19}$/', $name) ? 'albumid' : 'album';
    $picasa_feed = 'http://picasaweb.google.com/data/feed/api/user/' . $this->remove_whitespace($picasa_user_id) . '/' . $term . '/' . $name . '?kind=photo&amp;imgmax=1600';
    $entries = @simplexml_load_file($picasa_feed);
    if ($entries) {
        foreach ($entries->entry as $entry) {
            $attachments[] = $entry;
        }
    }
    return $attachments;
}

... with:

function get_attachments_picasa($picasa_user_id, $picasa_album_name) {
    $attachments = array();
    $name = $this->remove_whitespace($picasa_album_name);
    $term = preg_match('/^[0-9]{19}$/', $name) ? 'albumid' : 'album';
    $picasa_feed = 'http://picasaweb.google.com/data/feed/api/user/' . $this->remove_whitespace($picasa_user_id) . '/' . $term . '/' . $name . '?kind=photo&amp;imgmax=1600';
    $entries = @simplexml_load_file($picasa_feed);
    if ($entries) {
        foreach ($entries->entry as $entry) {
            $attachments[] = $entry;
        }
    }
    usort($attachments, array(&$this, 'sort_picasa_images'));
    return $attachments;
}

function sort_picasa_images($a, $b) {
    $a_filename = basename($a->content->attributes()->src);
    $b_filename = basename($b->content->attributes()->src);
    return strnatcasecmp($a_filename, $b_filename);
}

Hopefully this will work for you.
Please note that the line number above refers to the current version of WP-Juicebox (v1.5.0).

1,913

(2 replies, posted in Juicebox-Pro Support)

Thank you for providing the URL to your gallery's web page.
I think the problem might be that your URL includes an IP address and a port number.
Try using your domain name instead (for your shareURL and when you access your web pages in your browser).
Hopefully this will solve your problem.

1,914

(4 replies, posted in Juicebox-Pro Support)

Thank you for providing the URL to your gallery's web page.
It looks like you may have copied and pasted some code from the 'jbcore/full.html' file.
Remove the following line from the top of your gallery's embedding code and your firstImageIndex should be respected.

var expanded_jb_gallery = true;

This variable is for internal use only (from within the 'full.html' file) when the gallery is expanded in a new page of its own.
For reference, the standard embedding code that should be copied and pasted into your own web pages can be found here.

1,915

(2 replies, posted in Juicebox-Pro Support)

WP-Juicebox (the Juicebox plugin for WordPress) supports only one gallery per page or post.
If you want to embed multiple galleries on a single page or post, you'll need to embed them manually.
I would recommend using the baseUrl method of embedding as documented here.
Essentially, once you have created a gallery with JuiceboxBuilder-Pro, you would 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 page or post (ensuring 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 in the embedding code (the path to the 'juicebox.js' file and the baseUrl itself, pointing towards the gallery folder) are correct.

As you have already uploaded a complete gallery folder ('jbox') to your web space's root directory, you can use the following embedding code. The leading slashes in the paths denote your root directory so the embedding code will work in any web page throughout your site without any modification (although you can change the gallery dimensions and background color if required).

<!--START JUICEBOX EMBED-->
<script src="/jbox/jbcore/juicebox.js"></script>
<script>
    new juicebox({
        baseUrl: '/jbox/',
        containerId: 'juicebox-container',
        galleryWidth: '100%',
        galleryHeight: '600',
        backgroundColor: '#222222'
    });
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Notes regarding embedding multiple galleries in a single page or post

(1) Make sure that you embed each gallery into a container with a unique containerId/id.
(2) Load the 'juicebox.js' file only once per web page (not once per gallery).

For example, if you uploaded a second gallery folder ('jbox2') to your root directory alongside your current gallery folder ('jbox'), then you could embed the two galleries in a single page or post using the following embedding code:

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

<script>
    new juicebox({
        baseUrl: "/jbox/",
        containerId: "juicebox-container1",
        galleryWidth: "100%",
        galleryHeight: "600",
        backgroundColor: "#222222"
    });
</script>
<div id="juicebox-container1"></div>

<script>
    new juicebox({
        baseUrl: "/jbox2/",
        containerId: "juicebox-container2",
        galleryWidth: "100%",
        galleryHeight: "600",
        backgroundColor: "#222222"
    });
</script>
<div id="juicebox-container2"></div>

1,916

(2 replies, posted in Juicebox-Pro Support)

Please post the URL to your gallery's web page so that I can see the problem for myself.
Also, please let me know what share button you are having trouble with.

I have added shareURL to config.xml file.

Incidentally, the shareURL is used only by JuiceboxBuilder-Pro to create an accurate absolute path for the 'og:image' meta tag in the gallery's 'index.html'.
(The shareURL is not used by Juicebox itself when the gallery is being displayed.)

As noted in the Sharing Options section of the Config Options page, the shareURL should be defined as follows:

Absolute URL of the gallery, used for sharing purposes. This should be the absolute URL of the web page the gallery is embedded in, not including the HTML file name, for example: "http://www.example.com/mygallery/". This URL is used to populate the sharing content.

If you are not using the 'index.html' page created by JuiceboxBuilder-Pro (and are embedding the gallery in another web page), then be sure to add your own Open Graph tags to your gallery's web page.
For example:

<!-- START OPEN GRAPH TAGS-->
<meta property="og:title" content="Juicebox Gallery" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://www.example.com/images/IMG_0001.jpg" />
<meta property="og:description" content="" />
<!-- END OPEN GRAPH TAGS-->

1,917

(4 replies, posted in Juicebox-Pro Support)

Please post the URL to your gallery's web page so that I can see the problem for myself.
(Using the code you posted in a test gallery seems to work fine.)
It would help to see what version of Juicebox you are using, what other configuration options your gallery uses and what other code you have on your gallery's web page.
Thank you.

1,918

(5 replies, posted in Juicebox-Pro Support)

I'm glad you've been able to find the source of your problem.
Thank you for posting back to let me know.

1,919

(5 replies, posted in Juicebox-Pro Support)

Thank you for the link.
I see the problem in your own gallery but I have not been able to replicate the problem in a test gallery of my own (using 'Small' and 'Medium' images of the same dimensions as yours, the same configuration options that your gallery uses, the same 'index.html' page code and the same version of Juicebox-Pro).

If it's any indication of the problem, if you open one of the images in a new window (via Juicebox's 'Open Image' button), the image is still displayed very small. After clicking the 'Open Image' button, the image is displayed directly in the browser (with no HTML code at all) and Juicebox is no longer part of the equation.
On a retina display mobile device, the 'Medium' images should be displayed in the gallery and it should also be the 'Medium' images that are opened in a new window.
I would not expect to see such a small image when opened directly in a browser (your images do not appear to be that small).

I don't see anything obviously wrong with your gallery and cannot replicate the problem myself.
The most obvious difference between your own setup and mine is the web server so I'm wondering if there might be something going on server-side that is somehow causing the problem.
Maybe there's some server-side caching going on or perhaps use of a CDN which is currently serving older, smaller versions of your images.
It's all I can think of at the moment. If I think of anything else, I'll be sure to post back.

In the meantime, try creating a fresh gallery with different image ilenames that you know have not been cached anywhere (just rename your images) to see if this makes a difference.

Also, although there is no reason why your gallery with 'Small' and 'Medium' images should not work well, you could try creating a gallery with just 'Medium' images to see if this helps.

1,920

(5 replies, posted in Juicebox-Pro Support)

The problem might be caused by some custom CSS on your web page which is overriding the gallery's own CSS.
It might help to know other factors such as what version of Juicebox you are using, what meta 'viewport' tag your web page uses (if any), what dimensions your images are and what configuration options your gallery uses.

Please post the URL to your gallery's web page so that I can take a look at the problem for myself.
Please also let me know what device and browser(s) you see the problem in.

Once I am able to see the gallery for myself, I should hopefully have a better idea of what the problem could be.
Thank you.

Edit:
Maybe you are using a Multi-Size Image gallery with very small 'Small' images. The 'Small' image size would be used only in Small Screen Mode (on mobile devices) and small images would not be scaled up by default when using imageScaleMode="SCALE_DOWN".
(That's my best guess without being able to see the gallery.)

1,921

(8 replies, posted in Juicebox-Pro Support)

Will install from zip as suggested.

That should certainly work fine.

Although the auto-install mechanism works OK for myself, I see a lot of disgruntled users on the Adobe forums. It seems that add-on installation is causing many users problems (sometimes it works, sometimes it does not). Take a look at this forum thread as an example: https://forums.adobe.com/thread/1901283

Maybe the suggestion posted by rndllcprn in the thread will help:

Fixed it by signing-out of Creative Cloud, restarting and opening Photoshop CC 2015 and signing-in from there. Add-ons installed a few seconds after.

1,922

(8 replies, posted in Juicebox-Pro Support)

It sounds like you are doing everything as you should.
The current version of the Juicebox plugin for Photoshop (v1.5.0) hosted on the Adobe Add-ons website has been tested with Photoshop CC 2015.5 and auto-installs successfully via the Creative Cloud Desktop App on my own system.

4. Followed all instructions. No errors or strangeness.

You should get a confirmation message in the Creative Cloud Desktop App's 'Home -> Activity Stream' to let you know that the plugin installed successfully.
The only problem I encountered whilst testing the auto-install was when I installed a new version of Photoshop alongside an older version. I found I had to reboot before attempting the plugin installation again.
Make sure that your Creative Cloud Desktop App is up to date (v3.8.0.310). If you are not already using the latest version, updating it might make a difference.

If you are having trouble with the auto-install mechanism, I would recommend installing the plugin manually.
Just download the 'Photoshop CS2 to CS6' zip version from the plugin's support page and follow the manual installation instructions. The resulting files in the 'Presets/Scripts/' folder will be exactly the same as if installing the .zxp version. Only the packaging of the files differs between the two.

You're welcome!
I'm glad it worked. Thank you for letting me know.

It looks like you'll need to break out of PHP to enter the gallery's HTML embedding code and open up a new PHP section after the embedding code:
Try replacing:

echo ' **code goes here to work with logged-in users of SMF**  ';

... with:

?>
<script src="https://www.mydomain.tld/storage/support/jbcore/juicebox.js"></script>
<script>
    new juicebox({
        baseUrl: 'https://www.mydomain.tld/storage/pictures/galleries/',
        containerId: 'juicebox-container',
        galleryWidth: '100%',
        galleryHeight: '500px',
        backgroundColor: '#222222'
    });
</script>
<div id="juicebox-container">
    <noscript>
        <p>You need Javascript to view the gallery on this page.</p>
    </noscript>
</div>
<?php

Hopefully this will work for you.

1,925

(6 replies, posted in Juicebox-Pro Support)

Not yet.
You could override Juicebox's own click handler for the Email Button with your own (to use your own subject text) but I'm not sure exactly what Edge and Internet Explorer are choking on so you might encounter the same problem.
However, if you'd like to try it, you could use something like the following:

<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: "juicebox-container",
        showEmailButton: "TRUE"
    });
    jb.onInitComplete = function() {
        $('.jb-bb-btn-email').off('click');
        $('.jb-bb-btn-email').click(function() {
            window.location.href = 'mailto:email@address.com?subject=Gallery&body=Image No. ' + jb.getImageIndex();
        });
    };
</script>

This workaround uses the Juicbox-Pro API, specifically the onInitComplete event and the getImageIndex method (to fetch the current image number to be used in the email subject).