![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
An issue in Preview
Hi Kevin and Diap;
Please, open the attached epub; you'll see an image with a svg filter applied to emulate a metal surface. Now go to Metal_Filter.svg file and where you see Code:
<feFlood flood-color="red" result="solid_color"/> |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,899
Karma: 6120478
Join Date: Nov 2009
Device: many
|
By changing an item in the svg file and not an xhtml file, Preview has no way of knowing that the svg file was changed underneath it when reload was hit, so the cached version is loaded.
So when editing that svg file in CodeView is somehow not writing that change to disk immediately. Have you tried closing the SVG tab and then try the reload in Preview? Does that work? If not, does closing the xhtml CV tab and reopening it detect the change. Last edited by KevinH; Yesterday at 11:21 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,367
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I get the svg to reload by selecting another open codeview tab and then back to the tab with the svg. Works every time!
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 275
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
I must have missed something here. I don't see any color - neither the original red nor any other that I might edit in.
Is some plugin required? |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,706
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You have to open the .svg file in Code View to make the change mentioned.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,899
Karma: 6120478
Join Date: Nov 2009
Device: many
|
It is a bug. I think editing svg files in CodeView needs a mechanism like we use when editing a CSS file to force save that tab and signal the need to reload Preview.
I will look into it further. But closing that svg tab or making another tab active and moving back, should workaround this issue.. Last edited by KevinH; Today at 08:19 AM. |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 275
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
![]()
What is the role of the svg filter?
I presumed that because the Metal_Filter.svg file contained the entry Quote:
No matter which file I select, I never see any hint of red in Preview so what would I expect to see if the color was changed to blue or whatever? What do I need to do to see the effect of the flood-color in the SVG filter file? (since it's not April 1, I suppose it's not a question of the 'Emperor's new clothes' ![]() |
|
![]() |
![]() |
![]() |
#8 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
![]() Quote:
|
|||
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#12 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,840
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
The same role of any of the css filter. But svg filters are more powerfull than the css ones.
Quote:
Quote:
The original svg file (image1.svg) is a plain grayscale image (full filled with color="#777"). The final color, the brushed metal effect and 3D appearance are product of the applied filter. Last edited by RbnJrg; Today at 09:45 AM. |
||
![]() |
![]() |
![]() |
#13 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 275
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
Your attached image is the first time I've seen any red color. I find it hard to believe I've a system problem because I've tried on my MacBook, Linux and W11 machines and I always get a greyscale image whether I select the .xhtml file or the image file. I'm using Sigil 2.6.0 with Qt 6.8.2 on all 3 machines. That's why I wondered if there is a plugin needed to correctly view the SVG image. Attached is a screenshot from my linux machine showing Preview of the file Section0001.xhtml |
|
![]() |
![]() |
![]() |
#14 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,092
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For what it may be worth, I see what @philja is reporting. If I remove the url from the link to the filter, it shows a solid colour in Preview.
|
![]() |
![]() |
![]() |
#15 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,899
Karma: 6120478
Join Date: Nov 2009
Device: many
|
I have a potential fix, but I am in the same boat as DNSB and philja. I do not see any color at all (before or after the change from red to blue).
So I can not even test my fix! So something is funny. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 4 Cant reach certain buttons issue and opening keyboard issue | Thefirebeast | KOReader | 6 | 06-26-2021 12:46 AM |
issue converting from azw3 to mobi (ccs and font issue) | fatkinglet | Conversion | 3 | 10-15-2020 10:13 PM |
preview vs print preview | isalherbo | Sigil | 7 | 04-23-2013 03:52 PM |
Nook Simple Touch Glowlight - technological issue or quality-control issue? | Dr. Drib | Barnes & Noble NOOK | 1 | 12-04-2012 01:32 PM |
Hyperlinks Issue in NLT Bible (ebook or software issue)? | myet01 | Kobo Reader | 5 | 07-29-2011 08:47 AM |