               (catch Exception e (str "Failed to take SVG Structure\n" (.getMessage e))))
 
             screenshot (.getScreenshotAs d OutputType/BYTES)
+            screenshot (resize-image screenshot options)
 
             error (some #(when (not (nil? %)) %) [startup binary script waiting])]
 

  (System/exit status))


;=======================================================================================================================
; Script --> SVG | PNG
;=======================================================================================================================

            {:ok false :result error})
          {:ok true :result screenshot})))))


(defn svg-to-png [svg quit-ph exit-on-error width height]
  (if-let [driver (if quit-ph (create-driver) (get-free-driver))]
    (let [svg (rasterizator/clear-svg svg)
