Git Product home page Git Product logo

bolt-tinypng's People

Contributors

cdowdy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bolt-tinypng's Issues

No Longer Maintained.

see bolt/bolt#7483

that gets fixed/updated or bolt developers decide that hey people wanting to fix your undocumented usage of something is something they'll like I'll return to maintaining this.

As of right now if you're not a core developer of bolt good luck having any input.

Tiny spelling issue in the README.md

Wrong: If you choose either fit or cover as a resize method you must provide and with and height.
Correct: If you choose either fit or cover as a resize method you must provide a width and height.

Allow Directories to Be sorted in the backend

Bob Lauckhart asked about the directories being sorted in the directory tab.

If you have a lot of directories the way they are currently displayed may take up a lot of screen real estate.

They asked if we could sort the directories in Ascending or Descending order*.

Sooooo this issue is here for anyone else to come across and see its being implemented :)

  • sorting sub directories can be a pain. Since I have no control over how a person will name their directories, or if they even have sub directories it becomes difficult to sort them. So for now we'll just sort the main Directory and go from there.

PHP 5.6 support

Hey,
the ConfigHelper uses PHP7 Features, but in the composer.json is php7 not required

Refactor - Cleanup of Controller et all

Now that I have the base functionality that I'd use/want I need to refactor this code so its easier to maintain / update and add.

right now I'd like to with time permitting to:

  • move the directory logic into a class or method. IE this stuff:
if ( $directory == 'index' ) {
  $fileList = $filesystem->listContents( null, false );
} else {
    $fileList = $filesystem->listContents( $directory, false );
}  

if ( $directory == 'index' ) {
  $newImagePath = $filesPath . '/' . $newImageName;
} else {
  $newImagePath = $filesPath . '/' . $directory . '/' . $newImageName;
}  

if ( $directory == 'index' ) {
  $uploadDir = '';
} else {
  $uploadDir = $directory . '/';
}
  • move the flysytem stuff into its own class so we can easily reuse it "more better"

  • add optimized, optimized renamed, and uploaded files to the file list from the json response retrieved from the ajax endpoint
    *add option to delete a directory

  • add option to copy/clone an image

  • add metadata preservation options to the image upload

with time permitting move to a service

clean up templates - they are currently a mess and I know what they do since I built them :) haha

Server Errors arent shown in UI

Server Errors (like a server timeout 504) aren't shown in the UI and the buttons are still disabled.

The error is logged in the console but not shown to a user unaware of the console.

Allow uploading and restricting of uploaded img size

Allow a user to upload an image, optimize this / these images with the tiny/png/jpg api and restrict those to a specific size.

This would allow developers to enter a config setting that would take very big images - say 4000px by 4000px and on the upload resize those proportionally to a specific size. Like 1200px by 1200px. That way if a client or someone else uploaded big images we wouldn't have to worry about sizes or big ass images.

bolt 3.3 changed back end page mount point

bolt 3.3 decided to make a breaking change in a minor version. No longer are back end pages access from :

/bolt/extend/backend-page.

Extend has been changed to 'extensions'.

$app['resources'] & getPath() are deprecated since 3.3 and will be removed in 4.0.

used:

$boltFilesPath = $app['resources']->getPath( 'filespath' );

$filesPath = $app['resources']->getpath( 'filespath' );

$filesPath = $app['resources']->getpath( 'filespath' );

$boltFilesPath = $app['resources']->getPath( 'filespath' );

$boltFilesPath = $app['resources']->getPath( 'filespath' );

Batch upload with Vue gets "stuck"

Every once in a while when you batch upload into a directory sometimes the UI gets stuck and doesn't update. All the files successfully upload , get resized and optimized and saved to the server. The UI just gets stuck somewhere in the ether

TinyPNG's dropzone code throws error on non tinypng pages

I left autodiscover on :) so Dropzone js will try to find our upload form on backend pages that don't use the tinypng api/extension all that jazz.

Specifically:

Uncaught Error: No URL provided.
    at new Dropzone (dropzone.js:440)
    at Function.Dropzone.discover (dropzone.js:1479)
    at Dropzone._autoDiscoverFunction (dropzone.js:1761)
    at HTMLDocument.init (dropzone.js:1730)  

So we'll turn off autodisover since we can't restrict our custom pages/extensions to particular backend pages and init it only when the id of our form is found. Hopefully this doesn't break anything haha.

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.