Large version of my larger phots display as black box when attempting to view full size.

guysses3

Joined: 2012-06-02
Posts: 1
Posted: Sat, 2012-06-02 01:20

Strange issue when I click to view a full size image. It appears to open, but it is just a black box. If I right click on the image and open it in a new window or tab, it opens fine. It appears to happen only on my higher resolution photos that came out of my 10 mega pixel camera.

I am using Gallery 3 on a MacBook Pro, I updated a Gallery 2 version without issues.

I don't see any error messages, so all appears to be working, but I must be missing a setting somewhere. Thanks in advance for any help.

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7886
Posted: Sat, 2012-06-02 11:48

did you think to give us a link to the offending page?

-s

Login or register to post comments
gulysses3

Joined: 2003-09-09
Posts: 3
Posted: Sun, 2012-06-10 02:11

I have it running on my MacBook Pro laptop prior to uploading to the Internet, so I don't have a way to that reliably. . The gallery is over 30K images, 30 Gigs or so. I'm getting ready to test it with MAMP just for the heck of it. If that makes no difference, I'll upload a smaller version for testing on the Internet and if it is still not cooperating, I'll post a link. Thanks.

Login or register to post comments
risacher

Joined: 2012-06-12
Posts: 5
Posted: Tue, 2012-06-12 09:15

I have this exact same symptom. An example is http://risacher.org/gallery3/index.php/aquaponics/IMG_2900 ... this page works okay, but if you click on the image in Firefox 12 or 13, it comes up black. If you paste the link to the full size image into the browser directly, it works. So I think the problem is in $.gallery_show_full_size(), and is specific to Firefox.

It works okay in Chrome and Safari.

In IE8, it works but it's quite slow - the image doesn't show until it's finished loading, and since it's served at full resolution, this takes longer than the user (me) expects. At least in IE there is a statusbar that says that "Downloading http://...." so there's some indication that it's doing something.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Tue, 2012-06-12 16:36

If I go to:
http://risacher.org/gallery3/index.php/aquaponics/IMG_2900
there is no image 12 or 13

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
risacher

Joined: 2012-06-12
Posts: 5
Posted: Tue, 2012-06-12 23:36

Firefox 12 or 13, not image 12 or 13

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7886
Posted: Tue, 2012-06-12 23:46

they all work for me in FF12 and 13 on win7 try disabling your add-ons Firefox -> Help -> restart w/ add-ons disabled

-s

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Wed, 2012-06-13 00:02

Fine for me in FireFox13

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
risacher

Joined: 2012-06-12
Posts: 5
Posted: Wed, 2012-06-13 00:51

Curiouser and curiouser.

Bug is repeatable for Firefox 12, 13, and 14.0b6 on Mac OSX 10.7.3 "Lion".
Also Firefox 12 and 13 on OSX "Snow Leopard".

Bug does not occur for Firefox 11 or 13 on WinXP
Bug does not occur for Firefox 12 or 13 on Ubuntu 12.04 LTS.
Bug does not occur for Firefox for Android (on Kindle Fire)
Bug does not occur for Silk on Kindle Fire.

I'm ready to call this a Firefox bug, not a Gallery3 bug.

Login or register to post comments
risacher

Joined: 2012-06-12
Posts: 5
Posted: Wed, 2012-06-13 00:55

Oh, and I forgot to add... if I restart Firefox with add-ons disabled via the Help menu as suggested above, then the bug does not occur.

But lo! If I disable all add-ons (i.e. individually turning all of them off) then the bug does still occur.

Login or register to post comments
risacher

Joined: 2012-06-12
Posts: 5
Posted: Sun, 2012-12-16 13:43

This still happens on Firefox 17.0.1 when running on OS X 10.7.5.

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7886
Posted: Sun, 2012-12-16 13:58

here is a snippet from html5 boilerplate .htaccess regarding CORS Cross Origin Request Security

# ----------------------------------------------------------------------
# Cross-domain AJAX requests
# ----------------------------------------------------------------------

# Serve cross-domain Ajax requests, disabled by default.
# enable-cors.org
# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity

  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>


# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------

# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>
  </IfModule>
</IfModule>

Try adding that to your .htaccess

Worst part of these cross-domain/cross-origin security rules is that even www.mysite.com and mysite.com are cross-domain

-s
________________________________
All New jQuery Minislideshow for G2/G3

Login or register to post comments