forked from MapComplete/MapComplete
		
	Add detection for svgs which actually contain pngs, convert png into proper svg
This commit is contained in:
		
							parent
							
								
									278fce8726
								
							
						
					
					
						commit
						dd63ed7ab0
					
				
					 5 changed files with 981 additions and 2482 deletions
				
			
		|  | @ -7,6 +7,7 @@ import * as all_known_layouts from "../assets/generated/known_layers_and_themes. | |||
| import {LayoutConfigJson} from "../Models/ThemeConfig/Json/LayoutConfigJson"; | ||||
| import LayoutConfig from "../Models/ThemeConfig/LayoutConfig"; | ||||
| import xml2js from 'xml2js'; | ||||
| import ScriptUtils from "./ScriptUtils"; | ||||
| 
 | ||||
| const sharp = require('sharp'); | ||||
| const template = readFileSync("theme.html", "utf8"); | ||||
|  | @ -282,7 +283,6 @@ async function main(): Promise<void>{ | |||
|         const manif = JSON.stringify(manifObj, undefined, 2); | ||||
|         writeFileSync("index.manifest", manif) | ||||
|     }) | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| main().then(() => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue