Git Product home page Git Product logo

cms-delta-2's People

Contributors

paulmenzel avatar thekrixt avatar tralles avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

paulmenzel

cms-delta-2's Issues

Optimize uploaded images

PageSpeed Insights currently gives 60 from 100 to UNDUNE for the Desktop category (51/100 for Mobile).

It is suggested, that the images should be optimized.

Optimize images

Properly formatting and compressing images can save many bytes of data.

Optimize the following images to reduce their size by 512.8KiB (11% reduction).

All these images were uploaded by the users using the CMS. So they are outside of Ruby on Rails’ asset pipeline, and Gems like image_optim do not help.

It looks like PaperclipOptimizer might be the solution.

Any objections to a pull request adding this?

It should be checked if a copy of the original uploaded image is safed somewhere or also optimized.

Embedded images displayed wrongly in preview

bildschirmfoto vom 2016-05-12 11-06-32

Although the outer container is limited in width the image is displayed to wide.

This is only happens with Mozilla Firefox (tested with 45.0.2 and 38.7), but not with Google Chromium or Microsoft Edge.

Removing a user dosent work

I encounter this error when trying to delete a user:
"The action 'destroy' could not be found for UsersController"

bildschirmfoto vom 2016-05-18 16-24-46

cms: Utility `convert` not found in `/usr/local/bin`

In the development environment, the utility convert is currently assumed to be in /usr/local/bin.

$ git grep PAPERCLIP_COMMAND
cms/app/models/content.rb:              command_line = Cocaine::CommandLine.new( "#{PAPERCLIP_COMMAND_PATH}convert", "#{src_file_name} -resize #{width} #{dst_file_name}" )
cms/config/environments/development.rb:  PAPERCLIP_COMMAND_PATH = "/usr/local/bin/"
cms/config/environments/production.rb:  PAPERCLIP_COMMAND_PATH = "/usr/bin/"

This breaks on systems, where the utility is stored in /usr/bin or another path.

Normally, /usr/local/bin should be in the user’s path, so there shouldn’t be a need to hardcode the path.

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.