utils

package
v0.0.0-...-0bab42b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonResolutions = []Resolution{

	{
		1660,
		1200,
	},
	{
		1400,
		1050,
	},
	{
		1280,
		1024,
	},
	{
		1280,
		960,
	},
	{
		1152,
		864,
	},
	{
		1024,
		768,
	},

	{
		3840,
		2400,
	},
	{
		3840,
		2160,
	},
	{
		2560,
		1600,
	},
	{
		2560,
		1440,
	},
	{
		2048,
		1152,
	},
	{
		2560,
		1080,
	},
	{
		2560,
		1024,
	},
	{
		1920,
		1200,
	},
	{
		1920,
		1080,
	},
	{
		1680,
		1050,
	},
	{
		1600,
		900,
	},
	{
		1440,
		900,
	},
	{
		1280,
		800,
	},
	{
		1280,
		720,
	},

	{
		2932,
		2932,
	},
	{
		2248,
		2248,
	},
	{
		1280,
		2120,
	},
	{
		1224,
		1224,
	},
}

Functions

func CreateSizes

func CreateSizes(file multipart.File, obj *models.Wallpaper) (err error)

Types

type Resolution

type Resolution struct {
	Width  int
	Height int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL