Giter Site home page Giter Site logo

resize's Introduction

Resize

Use the finder preference > advanced > show all filename extensions

Really make sure you are in the right directory before running these scripts or it can change a lot of file

This is kinda a ridiculous thing I wanted to do thats overkill but I wanted to learn command line scripts and do a few specific things with image resizing.

Careful to make sure this is in the right spot

sh ~/Developer/resize/resize.sh

things to do

  • check how big something in an array is

The Linux Documentation Project

Theres some nice things like do ends in done. if ends in fi.

-p fails silently? https://superuser.com/questions/165157/what-does-the-p-flag-do-in-mkdir-p The -p flag will create nested directories, but only if they don't exist already.

we can only do one type of image per folder

maybe I need to remove all folders before I start work?

Im not currently renaming the orignal image but whatever

  • loop through each format at a time, if known do it, if common list of known to not work .txt etc dont and ask about unknown files

  • create the html document to accompany at then end

  • drag and drop, but thats less of a proprity

    • if one file then create a folder to hold the images after
  • have a quiet and verbouse readout

  • check if I have the webp and png compression algerithms on the system before running them or do they fail silently?

  • take pieces out into seperate files if I can. outside the loops things like name change

  • document the png compression

  • can I push the jpegs to jpeg mini? that was manual

  • maybe replace all . in short filenames before the extension and replace them with - this happens automatically in screenshots, doesnt seem to cause issues but it could

  • there was something about putting it in the dock but I cant remeber what it did and how

  • for png and webp does it become a node thing?

  • if a file doesnt show an extension it gets it twice in the end, macs love not showing the extensions that are there

  • reset the variables to logical order I go up and down in the letters

  • if i dont like double dashes that much and I know how to make them and delete them I can just do that at the end? ๐Ÿšจ except for when they are already in files?

  • should i also rename the original file to get a width x height? I can do a check with double dashes if i can figure out the pull them from files

  • auto generate the array of sizes by division or how much less each time, its doing all the work the more the better?

  • I need to be able to order the arrays

resize's People

Watchers

 avatar  avatar

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.