Git Product home page Git Product logo

swiftgd's Introduction

SwiftGD

This is a simple Swift wrapper for libgd, allowing for basic graphic rendering on server-side Swift where Core Graphics is not available. Although this package was originally written to accompany my book Server-Side Swift, it's likely to be of general use to anyone wishing to perform image manipulation on their server.

SwiftGD wraps GD inside classes to make it easier to use, and provides the following functionality:

  • Loading PNGs and JPEGs from disk.
  • Writing images back to disk as PNG or JPEG.
  • Creating new images at a specific width and height.
  • Resizing to a specific width or height.
  • Cropping at a location and size.
  • Flood filling a color from a coordinate.
  • Drawing lines
  • Drawing images
  • Reading and writing individual pixels.
  • Stroking and filling ellipses and rectangles.
  • Flipping images horizontally and vertically.
  • Basic effects: pixelate, blur, colorize, and desaturate.

SwiftGD manages GD resources for you, so the underlying memory is released when your images are destroyed.

Installation

Install the GD library on your computer. If you're using macOS, install Homebrew then run the command brew install gd. If you're using Linux, run apt-get libgd-dev as root.

Modify your Package.swift file to include the following dependency:

.package(url: "https://github.com/twostraws/SwiftGD.git", from: "2.0.0")

You should also include “SwiftGD” in your list of target dependencies.

SwiftGD itself has a single Swift dependency, which is Cgd.

Classes

SwiftGD provides four classes for basic image operations:

  • Image is responsible for loading, saving, and manipulating image data.
  • Point stores x and y coordinates as integers.
  • Size stores width and height integers.
  • Rectangle combines Point and Size into one value.
  • Color provides red, green, blue, and alpha components stored in a Double from 0 to 1, as well as some built-in colors to get you started.

These are implemented as classes rather than structs because only classes have deinitializers. These are required so that GD's memory can be cleaned up when an image is destroyed.

Reading and writing images

You can load an image from disk like this:

let location = URL(fileURLWithPath: "/path/to/image.png")
let image = Image(url: location)

That will return an optional Image object, which will be nil if the load failed for some reason. SwiftGD uses the file extension to load the correct file format, so it's important you name your files with "jpg", "jpeg", or "png".

You can also create new images from scratch by providing a width and height, like this:

let image = Image(width: 500, height: 500)

Again, that will return an optional Image if the memory was allocated correctly.

You can even create an image from Data instances:

let data: Data = ... // e.g. from networking request
let image = try Image(data: data, as: .png)

This will throw an Error if data is not actual an image data representation or does not match given raster format (.png in this case). If you omit the raster format, all supported raster formats will be evaluated and an Image will be returned if any matches (caution, this may take significantly longer).

When you want to save an image back to disk, use the write(to:) method on Image, like this:

let url = URL(fileURLWithPath: "/path/to/save.jpg")
image.write(to: url)

Again, the format is determined by your choice of file extension. write(to:) will return false and refuse to continue if the file exists already; it will return true if the file was saved successfully.

You can also export images as Data representations with certain image raster format, like so:

let image = Image(width: 500, height: 500)
image?.fill(from: .zero, color: .red)
let data = try image?.export(as: .png)

This will return the data representation of a red PNG image with 500x500px in size.

Images are also created when performing a resize or crop operation, which means your original image is untouched. You have three options for resizing:

  • resizedTo(width:height:) lets you stretch an image to any dimensions.
  • resizedTo(width:) resizes an image to a specific width, and calculates the correct height to maintain the original aspect ratio.
  • resizedTo(height:) resizes an image to a specific height, and calculates the correct width to maintain the original aspect ratio.

All three have an optional extra parameter, applySmoothing. When set to true (the default) the resize is performed using bilinear filter. When false, the resize is performed using nearest neighbor, and the result is likely to look jagged.

To crop an image, call its cropped(to:) method, passing in the Rectangle that specifies the crop origin and size.

Drawing shapes, colors and images

There are nine methods you can use to draw into your images:

  • fill(from:color:) performs a flood fill from a Point on your image using the Color you specify.
  • drawLine(from:to:color:) draws a line between the to and from parameters (both instances of Point) in the Color you specify.
  • drawImage(_:at:) draws an Image at the specified Point (or just top left if at is omitted).
  • set(pixel:to:) sets a pixel at a specific Point to the Color you specify.
  • get(pixel:) returns the Color value of a pixel at a specific Point.
  • strokeEllipse(center:size:color:) draws an empty ellipse at the center Point, with the Size and Color you specify.
  • func fillEllipse(center:size:color:) fills an ellipse at the center Point, with the Size and Color you specify.
  • strokeRectangle(topLeft:bottomRight:color:) draws an empty rectangle from topLeft to bottomRight (both instances of Point) using the Color you specify.
  • fillRectangle(topLeft:bottomRight:color:) fills a rectangle from topLeft to bottomRight (both instances of Point) using the Color you specify.

Manipulating images

There are several methods that apply filters to image objects:

  • pixelate(blockSize:) simplifies your image to large pixels, with the pixel size dictated by the integer you provide as blockSize.
  • blur(radius:) applies a Gaussian blur effect. Using a larger value for radius causes stronger blurs.
  • colorize(using:) applies a tint using a Color you specify.
  • desaturate() renders your image grayscale.
  • flip(_:) flips your image horizontally, vertically, or both. Pass .horizontal, ``vertical, or .both` as its parameter.

Example code

This first example creates a new 500x500 image, fills it red, draw a blue ellipse in the center, draws a green rectangle on top, runs the desaturate and colorize filters, and saves the resulting image to "output-1.png":

import Foundation
import SwiftGD

// figure out where to save our file
let currentDirectory = URL(fileURLWithPath: FileManager().currentDirectoryPath)
let destination = currentDirectory.appendingPathComponent("output-1.png")

// attempt to create a new 500x500 image
if let image = Image(width: 500, height: 500) {
    // flood from from X:250 Y:250 using red
    image.fill(from: Point(x: 250, y: 250), color: Color.red)

    // draw a filled blue ellipse in the center
    image.fillEllipse(center: Point(x: 250, y: 250), size: Size(width: 150, height: 150), color: Color.blue)
        
    // draw a filled green rectangle also in the center
    image.fillRectangle(topLeft: Point(x: 200, y: 200), bottomRight: Point(x: 300, y: 300), color: Color.green)

    // remove all the colors from the image
    image.desaturate()
        
    // now apply a dark red tint
    image.colorize(using: Color(red: 0.3, green: 0, blue: 0, alpha: 1))
        
    // save the final image to disk
    image.write(to: destination)
}

This second examples draws concentric rectangles in alternating blue and white colors, then applies a Gaussian blur to the result:

import Foundation
import SwiftGD

let currentDirectory = URL(fileURLWithPath: FileManager().currentDirectoryPath)
let destination = currentDirectory.appendingPathComponent("output-2.png")

if let image = Image(width: 500, height: 500) {
    var counter = 0
        
    for i in stride(from: 0, to: 250, by: 10) {
        let drawColor: Color
        
        if counter % 2 == 0 {
            drawColor = .blue
        } else {
            drawColor = .white
        }
        
        image.fillRectangle(topLeft: Point(x: i, y: i), bottomRight: Point(x: 500 - i, y: 500 - i), color: drawColor)
        counter += 1
    }

    image.blur(radius: 10)
    image.write(to: destination)
}

This third example creates a black, red, green, and yellow gradient by setting individual pixels in a nested loop:

import Foundation
import SwiftGD

let currentDirectory = URL(fileURLWithPath: FileManager().currentDirectoryPath)
let destination = currentDirectory.appendingPathComponent("output-3.png")

let size = 500

if let image = Image(width: size, height: size) {
    for x in 0 ... size {
        for y in 0 ... size {
            image.set(pixel: Point(x: x, y: y), to: Color(red: Double(x) / Double(size), green: Double(y) / Double(size), blue: 0, alpha: 1))
        }
    }
        
    image.write(to: destination)
}

License

This package is released under the MIT License, which is copied below.

Copyright (c) 2017 Paul Hudson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

swiftgd's People

Contributors

131e55 avatar andreasley avatar cweinberger avatar enricode avatar fappelman avatar markuswntr avatar mcritz avatar mikezucc avatar ratranqu avatar t089 avatar twostraws avatar vamsii777 avatar zntfdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftgd's Issues

can't process heif

Hello, iv'e installed libheif, but still get : GD Warning: gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x00 0x00GD Warning: gd-webp cannot get webp info: Not a TIFF or MDI file, bad magic number 0 (0x0).
GD Warning: Cannot open TIFF imageGD Warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully
[ WARNING ] Abort.500: Failed to create image [request-id: 2EA88713-0238-49D5-A1C8-82331A98358A]

How to build libgd on mac

I think you should add instruction for mac users, that helps to install libgd on mac.

I have success with this instruction:
brew install gd

Loading external images

let url = "https://i.ytimg.com/vi/t34kH5eOVhM/maxresdefault.jpg"
        guard let image = Image(url: URL(fileURLWithPath: url)) else {
            print(url + " could not be loaded")
            return
        }
        print("OK")

Will result in "could not be loaded"

Internal images work just fine, is there a way to load external?
Or load them via bytes?

gdImagePtr not found in 2.5.0, but found in 2.4.0

I have a strange regression bug. Version 2.5.0 gives tons of `use of undeclared type 'gdImagePtr' errors, but v2.4.0 does not.

steps taken:

  • SwiftGD 2.5.0 could not find gdImagePtr
  • brew reinstall gd
  • remove .build
  • clean project etc.
  • Double-check double setting of /usr/local/lib
  • downgraded to SwiftGD 2.4.0
  • In the end removing the xcodeproj was the only thing which worked

However, when I upgraded to SwiftGD 2.5.0 again, removing the xcodeproj and deep cleaning the build folder, and adding the library search paths did not work anymore.

  • Saved both build logs
  • downgraded to SwiftGD 2.4.0

The only discrepancy I see, is that the Format.swift file is in different positions:
2.4.0: checkouts/SwiftGD/Sources/Format.swift
2.5.0: checkouts/SwiftGD/Sources/SwiftGD/Format.swift

Also, it does link with the gd library, as you can see from the compile statement.

Build project5-Package_SwiftGD2.5.0.txt.zip
Build project5-Package_SwiftGD2.4.0.txt.zip

Resized images rotate

Resized images uploaded seem to rotate when they are resized. It seems to rotate image taken with the camera directly uploaded from a WebView 90 CCW. Images uploaded from the camera roll seem to rotate 180.

return try req.content.decode(UserFile.self).map(to: Response.self) { data in
            // create an array of the file types we're willing to accept
            let acceptableTypes = [MediaType.png, MediaType.jpeg]

            for file in data.upload {
                // ensure this image is one of the valid types
                guard let mimeType = file.contentType else { continue }
                guard acceptableTypes.contains(mimeType) else { continue }
                
                // replace any spaces in filenames with a dash
               /let cleanedFilename = file.filename.replacingOccurrences(of: " ", with: "-")
                
                // convert that into a URL we can write to
                let newURL = originalsDirectory.appendingPathComponent(cleanedFilename)
                
                // write the full-size original image
                _ = try? file.data.write(to: newURL)
                
                // create a matching URL in the thumbnails directory
                let thumbURL = thumbsDirectory.appendingPathComponent(cleanedFilename)
                
                // attempt to load the original into a SwiftGD image
                if let image = Image(url: newURL) {
                    // attempt to resize that down to a thumbnail
                    if let resized = image.resizedTo(width: 300) {
                        
                        // it worked – save it!
                        resized.write(to: thumbURL)
                        
                        var tags = [String]()
                        if data.tag_line != nil {
                            tags.append(data.tag_line!)
                        }
                        
                        let p = //Create a Photo object to save
                        
                        p.save(on: req)
                     
                    }
                }
            }
            
            return req.redirect(to: "upload")
        }

Build fails on Ubuntu

/Packages/SwiftGD-1.1.0/Sources/SwiftGD.swift:206:19: error: use of unresolved identifier 'gdImageCopyGaussianBlurred'
if let result = gdImageCopyGaussianBlurred(internalImage, Int32(radius), -1) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Cgdlinux.gdImageGaussianBlur:1:13: note: did you mean 'gdImageGaussianBlur'?
public func gdImageGaussianBlur(_ im: gdImagePtr!) -> Int32
^

Any idea?

SwiftGd is not doing anything on mac

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?

libgd-dev cannot be compiled on newer macs

Packagefile

.package(url: "https://github.com/twostraws/SwiftGD.git", from: "2.5.0")
.product(name: "SwiftGD", package: "SwiftGD")

Dockerfile

RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
&& apt-get -q update
&& apt-get -q dist-upgrade -y
&& apt-get -q install -y
ca-certificates
tzdata
libgd-dev
&& rm -r /var/lib/apt/lists/*

I can see in the logs that libgd-dev is properly installed but building doesn't work:

#0 8.035 Building for production...
#0 9.030 remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[1/918] Compiling SwiftSgml Attribute.swift
#0 14.19 remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[3/920] Compiling SwiftGD Color.swift
#0 14.86 :1:10: note: in file included from :1:
#0 14.86 #include "gd.h"
#0 14.86 ^
#0 14.86 /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:10: error: 'gd.h' file not found with include; use "quotes" instead
#0 14.86 #include <gd.h>
#0 14.86 ^
#0 14.86 :1:10: note: in file included from :1:
#0 14.86 #include "gd.h"
#0 14.86 ^
#0 14.86 /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:10: note: in file included from /build/.build/checkouts/SwiftGD/Sources/gd/gd.h:1:
#0 14.86 #include <gd.h>
#0 14.86 ^
etc.

Transparency channel lost after resizing image and saving it

I have an issue where I resize the original image and export it. It looses transparency channel

let originalImage = try Image(data: imageData)
originalImage.resizedTo(width: newSize.width)
image.transparent = originalImage.transparent
let thumbnailData = try image.export()

Round Images

Is it possible to make round images with any hack? This would be very useful for me.

header '/usr/include/gd.h' not found

Package.swift content:

import PackageDescription
let package = Package(
name: "project5",
dependencies: [
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1),
.Package(url: "https://github.com/IBM-Swift/Kitura-StencilTemplateEngine.git", majorVersion: 1),
.Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", majorVersion: 1),
.Package(url: "https://github.com/twostraws/SwiftGD.git", majorVersion: 1)
]
)
OP: MacOS Sierra/Ubuntu 16.04 (DigitalOcean)
Env: Docker using ibmcom/swift-ubuntu:latest/ also I tried it without docker

root@bb33f543917b:/projects/project5# swift build
Compile Swift Module 'SwiftGD' (1 sources)
Compile CHTTPParser utils.c
Compile Swift Module 'KituraStencil' (1 sources)
Compile CHTTPParser http_parser.c
/projects/project5/.build/checkouts/Cgd.git--1390626494485699789/module.modulemap:2:9: error: header '/usr/include/gd.h' not found
header "/usr/include/gd.h"
^
/projects/project5/.build/checkouts/SwiftGD.git-1170172309405307774/Sources/SwiftGD.swift:3:9: error: could not build Objective-C module 'Cgdlinux'
import Cgdlinux
^
:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /projects/project5/.build/debug.yaml

Apple Silicon M1 compatibility

Hello! I'm having trouble compiling this project on a mac with M1 processor.
I successfully installed gd with brew install gd.

When compiling I get the error 'gd.h' file not found; it looks like SPM is not picking up headers correctly

$ pkg-config --cflags gdlib                                   
-I/opt/homebrew/Cellar/gd/2.3.2/include
$ ls /usr/local/include | grep gd 
gd.h
gd_color_map.h
gd_errors.h
gd_io.h
gdcache.h
gdfontg.h
gdfontl.h
gdfontmb.h
gdfonts.h
gdfontt.h
gdfx.h
gdpp.h

Is there any workaround available or am I doing something wrong?

No such module 'SwiftGD'

I've installed gd using "brew install gd". I'm running a Kitura REST web service that does image manipulation and returns to the client! Mac OS Mojave latest version!

Can this library run in both Linux and MacOS? Also the issue. Can I draw image as eclipse or rectangle?

Then below is the package declaration but getting no such module "SwiftGD"

// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Project",
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/IBM-Swift/Kitura.git", from: "2.5.0"),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: "1.7.1"),
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsFacebook.git", from: "2.2.0"),
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsGoogle.git", from: "2.2.0"),
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsHTTP.git", from: "2.1.0"),
// .package(url: "https://github.com/mongodb/mongo-swift-driver", .branch("master"))
.package(url: "https://github.com/mongodb/mongo-swift-driver", from: "0.1.3"),
.package(url: "https://github.com/twostraws/SwiftGD.git", from: "2.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "Project",
dependencies: ["MongoSwift", "Kitura" , "HeliumLogger", "CredentialsFacebook", "CredentialsGoogle", "CredentialsHTTP", "SwiftGD"]),
.testTarget(
name: "ProjectTests",
dependencies: ["Project"]),
]
)

Support RGB to Index downsampling

SwiftGD should support GD’s internal gdImageTrueColorToPalette() function.

I plan to implement this myself, so this ticket is mostly to signal intent and track progress.

SwiftGD working great on Mac but not working on Ubuntu.

Hi,

I have a problem with SwiftGD working on Ubuntu 18.04.

I've installed it like "apt-get install libgd-dev" but on vapor if I try to upload an image I get some errors:

in console:
[ ERROR ] Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist." (ErrorMiddleware.swift:26)
[ DEBUG ] Conform NSError to Debuggable for better debug info. (ErrorMiddleware.swift:26)

in Safari:
{"reason":"Something went wrong.","error":true}

I'd like to notice everything is working great on my Mac. Those errors are only on Ubuntu and image is not being uploaded. I'm using exactly the same Swift code on both platforms:

func addUserProfileImagePostHandler(_ req: Request) throws -> Future {
// create an array of the file typer we're willing to accept
let acceptableTypes = [MediaType.png, MediaType.jpeg]
// look for image from post data
return try flatMap(to: Response.self, req.parameters.next(User.self), req.content.decode(UploadFileData.self)) { user, data in
// getting directories for properties images
if !self.fm.fileExists(atPath: "(self.rootDirectory)/Public/real_estate_website/uploads/user_images/(user.id!)") {
try self.fm.createDirectory(atPath: "(self.rootDirectory)/Public/real_estate_website/uploads/user_images/(user.id!)", withIntermediateDirectories: false)
}
let uploadDirectory = URL(fileURLWithPath: "(self.rootDirectory)/Public/real_estate_website/uploads")
let propertyImagesDirectory = uploadDirectory.appendingPathComponent("user_images/(user.id!)")
// ensure this image is one of the valid types
if let mimeType = data.upload.contentType {
if acceptableTypes.contains(mimeType) {
let filename = "profileImage.jpg"
let newURL = propertyImagesDirectory.appendingPathComponent(filename)
let image = try Image(data: data.upload.data)
// resizing the image and saving it
if let resized = image.resizedTo(width: 362) {
resized.write(to: newURL, allowOverwrite: true)
user.image = filename
}
}
}
let redirect = req.redirect(to: "/real_estate/admin/users/(user.id!)/profile")
if user.image == "profileImage.jpg" {
return user.save(on: req).transform(to: redirect)
} else {
return req.future().transform(to: redirect)
}
}
}

Please help.

Possible memory leak when exporting?

When I resize and export an image Xcode reports a memory leak in gdReallocDynamic.

let image = try Image(data: data)
guard let newImage = image.resizedTo(width: options.maxWidth ?? image.size.width, height: options.maxHeight ?? image.size.height) else {
  throw Abort(.internalServerError)
}
promise.succeed(result: try newImage.export(as: .jpg(quality: 85)))

Doing this over and over again, steadily grows the memory footprint of the app...

image

Memory Leaks (Instruments)

So i was observing SwiftGD's behaviour since I'm using it for scaling images. Instruments detects memory leaks, at least when using it in Vapor. I've confirmed that they only occur when using SwiftGD. Instruments shows that the Responsible Frame is "gdReallocDynamic".

'width' is inaccessible due to 'internal' protection level

Hi!

When I use let size = Size(width: 500, height: 348)
the properties width and height are inaccessible.
Please make them public to:

public struct Size {
    public var width: Int
    public var height: Int

	public init(width: Int, height: Int) {
		self.width = width
		self.height = height
	}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.