Replace .gif flag icons to .svg icons #47128
Replies: 14 comments
-
|
FYI #21410 |
Beta Was this translation helpful? Give feedback.
-
|
Maybe after 3 years, those who have slowed down the evolution of Joomla, now they have changed their minds and we will finally have some decent assets! In our websites we typically do an override choosing carefully the icons in SVG. It would be nice if they were in the core though... |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing the override layout, Simone. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting suggestion. I read the [very old] discussion [that went nowhere]. Several commentators noted the distinction between country flags and languages spoken in those countries. For instance, Switzerland has one flag but four official languages. While country flag images may suggest to people visiting a website that the content is available in more than one language, the use of a national flag does not imply that transnational languages are implemented on the website. For instance, I would never use the Union Flag (the official flag of the United Kingdom) on any of my websites. As a proud Australian, I would display the Australian flag (perhaps) ... but so what? Flags do not mean languages. Worse, flag images are useless to people who have visual impairment (even if you used an "alt=" tag. As I say, it's an interesting suggestion. I think it's a good idea if J! offers the ability to use SVG instead of GIF. Some people will probably be attracted to use scalable graphics instead of "ugly" GIFs. That's about as far as I am prepared to go, though. Offer the choice, yes; implement the feature at one's own discretion (or risk, or peril). :) |
Beta Was this translation helpful? Give feedback.
-
|
Users already have the choice |
Beta Was this translation helpful? Give feedback.
-
|
No dispute there, Brian. 😎 |
Beta Was this translation helpful? Give feedback.
-
I clearly understand what you mean but guess this is the question of a webmaster's choice according to the situation: the country, language and target auditory. |
Beta Was this translation helpful? Give feedback.
-
|
A little off-topic: I've used "emoji flags" to display country information. Because emojis already exist (and they're reasonably scalable), there may be no need to create a package of images (in GIF, SVG or other format). Just saying. |
Beta Was this translation helpful? Give feedback.
-
Emoji are not assets, they are an interpretation made by the OS, and they aren't accessible. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I add that current GIFs are considered "bad" SEO practice by Google, since on mobile they have a too low resolution. I override the mod_language to load at least custom png images with double size (36x24) while setting width still to 18 and height to 12 so that flags keep the same size as now but as a higher definition icons. The improvement in quality is also visible on desktop. |
Beta Was this translation helpful? Give feedback.
-
+1 |
Beta Was this translation helpful? Give feedback.
-
|
...GIFs are considered "bad" SEO practice by Google... I'm interested to see this issue proceed with a more modern visualization of flags.... +1 I agree too. J4 needs an update of flags icon, and "it's a good idea if J! offers the ability to use SVG instead of GIF" This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35554. |
Beta Was this translation helpful? Give feedback.
-
|
Even though we are lucky to have a core multilanguage feature which is not the case with wordpress. The default quality of those Gifs make your site look amateuristic and you recognize a Joomla website straight ahead when you see a pixelated english language icon. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35554. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, 4 years later the english default flag on joomla still looks like this, please fix this.
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Well, the flag icons used in the language switcher module still are in old gif format which is not scalable.
I suggest replacing old icons with the new SVG icons taken from the free package.
Such an approach will give the ability to customize its size or change anything via CSS.
Example of existing flag icon:

The flags can be bigger and scalable:

Here is the package:
https://flagicons.lipis.dev/
https://github.com/lipis/flag-icon-css/blob/master/LICENSE
MIT license
Beta Was this translation helpful? Give feedback.
All reactions