Some .png files not displaying in Chrome


(Rob) #1

When previewing or exporting some of the .png files are not displaying in the latest version of Chrome (65.0.3325.181). I have cleared the browser cache many times but the issue persists.

This issue seems to have only appeared in the last week or so. I have previously been able to see the exact same hype files including the .png’s without any issue.


#2

Can you point us to an example? Unless we can see this or people have had similar issues. It’s difficult to offer anything of help.

Have you a console log of any errors?


(Rob) #3

Thanks DBear, here’s a link to the example:

http://iflourish.co.uk/test-hype/the-golden-thread.html

I don’t haven’t any chrome errors on export


#4

Ok. next question … which PNG’s are not displaying? Had a quick look at the link and doesn’t seem to be any problems.

Wondering which device has the issues instead of the browser. One possibility and this is a wild stab in the dark is that Hype optimises picture files for better resolution displays so perhaps if it’s viewed on one of these and the file is not included in the resources. This being said, I also had a look at your script and it looks like you’ve perhaps unticked “optimize when exporting”.

And, this would show a 404 not found in any console.


(Rob) #5

The first scene displays fine, but if you select continue and view the second scene there are thumbnails and speech bubbles missing. They display fine in Safari and Firefox but in Chrome they just don’t load.

Just had a look through the library in the source file and all the .png’s are checked ‘automatically optimize when exporting’

I’m beginning to wonder whether this is a problem with latest version of Chrome as this file was working fine a couple of weeks ago.


#6

I looked using the latest version of Chrome and everything was fine! Just to clarify this is OSX 10.13.1 non-retina display

8A521CFF-26EE-4EF6-B78E-FCC2AE960C06


(Carol) #7

I can see them when using Chrome on Windows, but they are missing with Chrome on OSX…

Windows:

OSX:


#8

This could well be the fact that optimised images are not found. When you export and you have pmg’s optimised by Hype, your resources folder should have a similar pattern to this:

myImage.png
myImage_2x.png

In your url you don’t have the _2x.png images.

Perhaps this is the issue?


(Rob) #9

Thanks. Yes it could be. It’s a strange one as there are no x2 .png’s in the library yet some .png’s work fine. I’ll give it a go with this in mind and see it solves the problem.


(Jonathan Deutsch) #10

This is a chrome rendering bug. It looks like chrome is having problems when you are scaling a group from 0% that contains an image – the inner image is never being rendered. From what I can tell this has been fixed in the Canary build of Chrome, so it should come to the Stable version eventually. Until then, there are a couple workarounds you can try:

  • Scale the groups from 1% instead of 0%. If you need them to be completely hidden you could probably also do a quick animation on the Opacity or Display properties
  • Add a 1% Y or X rotation to make the element 3D

Problem with Chrome to show the image
#11

I see the images in Chrome though :frowning:


#12

Curious… I’m not.

Two iMacs - one running El Capitan & the other High Sierra - with latest version of Chrome on both [Version 65.0.3325.181 (Official Build) (64-bit)].


(Jonathan Deutsch) #13

I can reproduce the bug on my 5k iMac but not my 13" MacBook Pro… interesting. Might be hardware-specific as it is a rendering issue.

@JimScott if you use the Canary build, does it appear fixed for you?


#14

Yes. Both iMacs (El Capitan & High Sierra) with Chrome’s Canary build display the images properly.


(Rob) #15

Thanks everyone. Thanks for highlighting the scaling issue. I have now started the group scaling at 1% for each group of objects and all the .png’s contained within those groups successfully render in chrome (I have uploaded the revised presentation to the link above).

Hopefully the Canary build when thats released will negate the need to start scaling at 1%. for now though that works and looks fine for the purposes I need.


(Kevin Filteau) #16

My solution to (temporarily) fix the issue is to hide the backface of any div :

div {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
}


(Jonathan Deutsch) #17

Cool! How did you discover that fix?


(Kevin Filteau) #18

In the past I ran into the issue of getting some artifacts while animating a rotating div. I searched and done a lot testing with css tricks to get it to work, and finally come across this backface visibility solution. This time it was hard because it was random and could not test on my computer. I searched a lot again to understand what could be the problem, I finally understand it was related to Chrome, but in some random cases. Then I come across an article talking about 3d transform, scaling, problems with a bunch of solutions that was not really working in my case, but it also talked about things about the backface, so I remember my previous bug, tried it and it worked. So I didn’t invent the wheel buy worked a lot of time to make one!


(Jonathan Deutsch) #19

Thanks! I am going to do some deeper looking into the Chrome bug on this and appeal to get it fixed sooner, but if not this might be a viable workaround in Hype’s runtime.


(Jonathan Deutsch) #21

It looks like this was fixed in Chrome 66.