[O] Smaller res
This commit is contained in:
@@ -67,7 +67,7 @@ class FontResolver(private val context: Context) : SVGExternalFileResolver() {
|
||||
|
||||
fun renderSvgAndroid(context: Context, svg: String): Picture? {
|
||||
SVG.registerExternalFileResolver(FontResolver(context))
|
||||
return SVG.getFromString(svg).renderToPicture(7133, 4904)
|
||||
return SVG.getFromString(svg).renderToPicture(7133 / 2, 4904 / 2)
|
||||
}
|
||||
|
||||
fun renderSvgBytes(context: Context, svg: String, exif: ExifResult) = renderSvgAndroid(context, svg)?.run {
|
||||
|
||||
Reference in New Issue
Block a user