Git Product home page Git Product logo

retini's Introduction

alt text

Retini

A super fast and simple retina (@2x, @3x) image converter.

How to use?

You can download the prebuilt application from the releases, or just download / fork the project and build it yourself.

After you've got the app running, you can drag single files, multiple files and directories to convert @3x or @2x images. Dragging is allowed in the Retini window as well as the App Icon in the Dock.

How does it work?

The resized images will be placed in the same directory as the source file. The resizing goes like this:

Generated? Drag @3x file Drag @2x file
@2x ×
1x

The original file will never be altered, the @2x and 1x are copies. If you drag a @3x file, the 1x file generated will be generated from the (original) @3x, so no double conversion loss.

Pixel art upscaling

You can drag a file with a @1x extension, Retini will scale this to a @2x and @3x file. This is nice for pixel art, upscaling is done via the nearest neighboor filter / algorithm.

retini's People

Contributors

terwanerik 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

retini's Issues

Pixel Art Scaling

Allow @1x images be enlarged into @2x and @3x images.
When you make pixel art you create the original size first and then upscale it to look good.

Use the nearest neighbour filtering.

When quality is 10/10, @2x file size will bigger then @3x (jpeg)

Maybe this is bug of NSImageCompressionFactor.

I change the code below fix the problem.

ResizeModel.m 164

NSDictionary *properties = quality == 1.0 ? @{} : @{NSImageCompressionFactor : @(quality)};
NSData *data = [bitmapRep representationUsingType:fileType properties:properties];

Wrong @2x Conversion

@2x outputs are bigger than @3x input file. Ex: I drop a 1125x80 pixel image with @3x suffix, Retini gives me a 1500x117 pixel @2x output.

Invalid color space and incorrect size

@2x and @1x generated images size is often not correct ; Eg : @3x 152x152 => @2x 200x200, @1x 100x100

Moreover the generated pngs don't keep the original colorspace. They seem to take the current screen color space.

Find attached one of the files that causes such
close_button 3x
issues.

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.