View Single Post
Old 06-13-2016, 09:43 AM   #57
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by DiapDealer View Post
EDIT:... Everything works fine if the svg attributes are cased properly to begin with, but not if they're already improperly cased in the source.
I don't think this is correct. If you use the Tools - Add Cover option, the generated SVG code will have correctly-cased attributes. Running the plugin directly afterwards will mess-up the casing.

I believe the problem has something to do with the fact that the 'Add Cover' option creates
Code:
preserveAspectRatio="...">
on a new line. I tested this theory by changing the standard code so that
Code:
viewBox="..."
was also on a new line. Ater re-running the plugin both preserveAspectRatio and viewBox had changed to preserveaspectratio and viewbox.

Running Beautify before running the plugin removes the new lines.

Quote:
Originally Posted by DiapDealer View Post
It's weird that no one noticed until now...
My best guess is that a defective preserveAspectRatio attribute results in a default being used and perhaps the default is to assume preserveAspectRatio="xMidYMid meet", which is what most people would have set it to anyway. I only noticed the problem because I'm one of the Philistines who prefers preserveAspectRatio="none" for my covers
jackie_w is offline   Reply With Quote