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

Overview

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.

Comments
  • Pixel Art Scaling

    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.

    enhancement 
    opened by JontePman 2
  • Fixed wrong image resize due to the use of backingScaleFactor instead…

    Fixed wrong image resize due to the use of backingScaleFactor instead…

    … of using the real image size in pixels

    Hi!

    If had an issue when trying to downscale images. For example, an @3x image of 180x180 px gives me: @2x => 90x90px @1x => 45x45px

    The expected results are @2x => 120x120px @1x => 60x60px

    The issue is due to the use of NSScreen backingScaleFactor to calculate the real size of the image. I have a screen with a backingScaleFactor of 1.

    I corrected the code so that we don't calculate the real image size based on the screen scale factor but by using the real image data.

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

    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];
    
    opened by powhu 1
  • Added PDF as input

    Added PDF as input

    Now Retini has the ability to get PDFs as input, useful with vector assets. Normally you can use PDFs directly in Xcode but it can be useful for other platforms like Flutter or React Native. Cheers! 🍺

    opened by pascalbros 0
  • Invalid color space and incorrect size

    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.

    opened by false 2
Releases(v1.3.2)
Owner
Erik Terwan
Senior iOS Developer @ MediaMonks
Erik Terwan
Managing state is hard. Delta aims to make it simple.

Managing state is hard. Delta aims to make it simple. Delta takes an app that has custom state management spread throughout all the VCs and simplifies

thoughtbot, inc. 246 Jun 29, 2022
Simple PBXProj Verifier

Kin Kin is a minimalistic tool to check whether your project.pbxproj file is correct. What does it do? Have you ever found yourself undoing a merge du

Sergio Gutiérrez 857 Dec 29, 2022
Unit-Converter-SwiftUI - A simple Unit Converter iOS app built in the process of learning SwiftUI

SwiftUI-Unit-Converter A simple Unit Converter iOS app built in the process of l

Ishaan Bedi 2 Jul 13, 2022
Currency Converter - Free and Quick Converter calculates money quick and easy way to see live foreign exchange rates.

Currency Converter - Free and Quick Converter calculates money quick and easy way to see live foreign exchange rates. This app is available in the App

Tirupati Balan 212 Dec 30, 2022
A Currency Converter & Calculator IOS application to check, convert and calculate to popular currencies to your favorite ones.

A Currency Converter & Calculator IOS application to check, convert and calculate to popular currencies to your favorite ones.

CCC 64 Jan 1, 2023
Currency Converter project coded by SwiftUI and Swift5

SwiftUI-Currency-Converter Currency Converter project coded by SwiftUI and Swift5 Features Implemented with SwiftUI Supports darkmode for sure SwiftUI

Alex.Liu 60 Oct 26, 2022
Converter for your Rigol Oscilloscope .CSV files to LtSpice

rigol2spice A program to convert Rigol oscilloscope's .CSV files to a format readable by LTspice. Your Rigol oscilloscope can output .CSV files that c

Rui Carneiro 4 Aug 31, 2022
Mappable - Flexible JSON to Model converter, specially optimized for immutable properties

Mappable is a lightweight, flexible, easy-to-use framework to convert JSON to model, specially optimized for immutable property initializatio

Leave 27 Aug 26, 2022
A real-time cryptocurrency tracker and converter

CryptoRhino Run the .xcworkspace file Description: CryptoRhino is a real-time cryptocurrency tracker and converter. We track cryptocurrency prices in

Gregory Tolkachev 0 Nov 30, 2021
Unit converter in Swift

Scale ❤️ Support my app ❤️ Push Hero - pure Swift native macOS application to test push notifications PastePal - Pasteboard, note and shortcut manager

Khoa 324 Dec 10, 2022
CurrencyConverter - Currency Converter App Built With Swift

CurrencyConverter Stack: Xcode 12.5.1 iOS 14.5 UIkit iOS deployment target: 13.0

Nikita Yarosh 2 Sep 4, 2022
Unit converter in Swift

Unit converter in Swift

Khoa 324 Jun 29, 2022
Super Simple Pager with RxSwift extension

SSPager Super Simple Pager Example To run the example project, clone the repo, and run pod install from the SSPagerExample directory first. Installati

9oya 4 Jul 10, 2022
A super simple tool for macOS Swift developers to check validity of a Gumroad-issued software license keys

Gumroad License Validator Overview A super simple tool for macOS Swift developers to check validity of a Gumroad-issued software license keys Requirem

Daniel Kašaj 13 Sep 2, 2022
A super simple library for state management with unidirectional data flow.

OneWay ?? OneWay is still experimental. As such, expect things to break and change in the coming months. OneWay is a super simple library for state ma

SeungYeop Yeom 41 Dec 20, 2022
SwiftyEmail - A super simple Swift e-mail composer package

SwiftyEmail is a mini library for iOS, iPadOS and Mac Catalyst using MessageUI. With SwiftyEmail, you'll be able to send e-mails from your app calling your user's favorite e-mail app (including third party ones!).

Marcos Morais 5 Nov 20, 2022
ALCameraViewController - A camera view controller with custom image picker and image cropping.

ALCameraViewController A camera view controller with custom image picker and image cropping. Features Front facing and rear facing camera Simple and c

Alex Littlejohn 2k Dec 6, 2022
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 3, 2023
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

Evgenii Neumerzhitckii 330 Sep 9, 2022
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 2, 2023