core icon indicating copy to clipboard operation
core copied to clipboard

[6.0.5] logo.svg theme not appearing in safari

Open ser72 opened this issue 12 years ago • 9 comments

Expected Behavior image to appear in Safari as it does in FF and IE and Chrome

Actual Behavior Image doesn't appear in Safari at all

Steps Create a theme using the folder in

s3/support/github-issues/core/11236

Log in via chrome and notice the image appears Log in via Safari and notice the image doesn't appear.

Things tried

  1. Resize the image -- it appears large according to the specs. Attempted to resize to proper specs
  2. Configure the viewBox for the image
  3. Configure all XML code for the image to mimic a working SVG theme image
  4. Replace a working image with this image (via cut and paste of the image into the working file) -- save new file and replace file in theme

No matter what I do, cannot get this theme to show the image in Safari.

ser72 avatar Sep 22 '14 18:09 ser72

@ser72 you said yesterday on IRC that this specific SVG image contains an embedded JPG image, is that correct ? Maybe Safari cannot properly render this kind of SVG ?

PVince81 avatar Sep 23 '14 09:09 PVince81

@PVince81 Yes it is specific to this SVG. I have other SVG images that work fine in Safari.

ser72 avatar Sep 23 '14 10:09 ser72

Well then maybe that might be the issue. If the embedded JPG is all there is in the SVG, just save the JPG as PNG and use that as logo. No need to fake-wrap it as SVG.

jancborchardt avatar Sep 23 '14 12:09 jancborchardt

@ser72 that is, you just need to remove the logo.svg and logo-wide.svg entirely. Then it will fall-back to the PNG.

cc @butonic cause he fixed that in https://github.com/owncloud/core/pull/5496 some time ago (is in stable6).

jancborchardt avatar Sep 23 '14 12:09 jancborchardt

@jancborchardt

Bingo. That did the trick.

ser72 avatar Sep 23 '14 12:09 ser72

Great! :)

jancborchardt avatar Sep 23 '14 22:09 jancborchardt

I have the same problem. And when I remove the .svg files as suggested no logo is displayed anymore - neither in Firefox nor in Safari.

alve89 avatar Jul 16 '15 19:07 alve89

@alve89 likely your theme or image is broken.

And when I remove the .svg files as suggested

That’s not suggested anywhere. We recommend using SVG files as they look nice and scale to high-dpi such as smartphones and modern displays. PNG is only the fallback for IE8.

jancborchardt avatar Jul 17 '15 06:07 jancborchardt

Have any one a solution without configurating in the core because of the updates? I think the issue is creating an svg. Attached my Ilustrator Settings... svg

aquilaxx avatar Sep 15 '15 15:09 aquilaxx