Skip to content

Svg images with SkiaSharp increasing app size significantly #893

Closed

Description

@EmilAlipiev

Svg plugin awsome and works great but I recognize that this SkiaSharp plugin is 4mb big. it is a significant size for a single package. Cant we find a better alternative or it is the best we can get? I am seeing this 4mb
using Full Linking, Bundle into Native Assemblies and without AOT in release mode when I extract the package as shown in the image

image

Activity

  1. daniel-luberda commented on Jan 9, 2018

    @daniel-luberda
    Member

    It's best what we can get. See this:

    Please mind that you will compensate those 4MB when you add some images. Image files are many times larger than SVG files and you also don't need to include multiple image sizes when using SVGs.

  2. EmilAlipiev commented on Jan 9, 2018

    @EmilAlipiev
    Author

    I agree with you about compensation but in my gain from images are 1 mb max. I think that it is perfect solution for the apps heavily using high resolution images. I asked this question because i went through some other libraries doing without skiasharp although these libraries looks like not updated and almost dead. anyway i am closing this ticket. just wanted to bring into your attention. thank you

  3. EmilAlipiev commented on Jul 1, 2018

    @EmilAlipiev
    Author

    Oh my good, this became crazy now. i am using 1.60.1 version of skiasharp and it occupies 9mb size. in April last time i checked it was like shown above around 3.8mb what happened with the newer versions? what did they do? it is impossible to use your library because of skiasharp. how can we report it best?

    image

  4. EmilAlipiev commented on Jul 1, 2018

    @EmilAlipiev
    Author

    I have just downgraded skiasharp to 1.60.0 version and result is same like above image one with 3.9mb.. something has changed with 1.60.1

  5. KristofferBerge commented on Jul 11, 2018

    @KristofferBerge
    Contributor

    I use Xamarin.FFImageLoading.Svg.Forms to render SVGs, but the size of the library is way too big. Is it possible to configure linking to exclude parts of the SkiaSharp library for the SVG nuget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions