Support for SVG in Opensource Social Network

Ranjan Rai Posted in Component Development 4 years ago

As we all know SVG are usually small in size and more over they can render animation, so I personally fell OSSN should have a native SVG support.

Replies
German Michael Zülsdorff Replied 4 years ago

Sorry,
but if the SVG is only used to display an embedded gif, I don't need that extra code around but can upload that gif separately.

Anyway, the latest TextAreaSupport component DOES enable the TinyMCE Editor to support SVG. That is you may use SVGs in Blogs, Bio, etc. - more support will not be available in the near future.

in Ranjan Rai Replied 4 years ago

A support for svg in the OSSN

German Michael Zülsdorff Replied 4 years ago

Okay. A svg file with a base64 encoded gif image inside.
And what should we learn from that?

in Ranjan Rai Replied 4 years ago

OMG globe is not showing in svg image

in Ranjan Rai Replied 4 years ago

I am including two different types of images which I use to use in a group one is a svg image where as other one is a gif image, what I found is the issue with the picture quality with the gif image and I believe this will not impact the quality in the svg image part.
svg-> https://go.0or1.ml/index.php?r=files/file/download&id=19&random_code=VLRFkSJ4xOu&inline=false&security_token=LnIVdGC7FRsyvtpMEOgH
enter image description here
gif-> enter image description herehttps://go.0or1.ml/index.php?r=files/file/download&id=18&random_code=9qVzerZsLfc&inline=false&security_token=LnIVdGC7FRsyvtpMEOgH

in Ranjan Rai Replied 4 years ago

Yes you are correct normally people prefer to use raster images rather than vector image in day to day, but I prefer to share some of the vector images on our network, so I was thinking if OSSN could support vector images then it can help me to share my images on the network and I'll prefer to use a vector image as my website logo too.

German Michael Zülsdorff Replied 4 years ago

Hmm ... honestly this doesn't make too much sense to me.
I agree: svgs can be of real help to create interesting effects on websites or maybe even pepping up your bio or blog, but on a newsthread? Todays people are used to make a quick shot with their smartphone and posting it a minute later. That's the normal workflow.

in Ranjan Rai Replied 4 years ago

Thanks Zetman for this information, I was expecting a more linear adaptation of the file format from the front-end as a image type in the news feeds section.

German Michael Zülsdorff Replied 4 years ago

SVG support for admin backend editor is available with Release 1.5 of GreenByGreen now.

German Michael Zülsdorff Replied 4 years ago

Install TextareaSupport 2.2 - and you'll be able to enter SVG code via
Tools -> Source Code

Currently working with all components that are TextareaSupport based:

  • Bio
  • Blog

https://www.opensource-socialnetwork.org/component/view/3196/textareasupport