twostraws / SwiftGD

A simple Swift wrapper for libgd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftGd is not doing anything on mac

HosMercury opened this issue · comments

I have the image uploaded to disk

            let url = URL(fileURLWithPath: path)
            let image = Image(url: url)
            if let im = image {
                if let mg = im.resizedTo(width: 250, height: 250){
                    mg.write(to: url)
                }
            }

I tried to resize the image and save it with no hope?

My bad
I have to add a new path