Git Product home page Git Product logo

Comments (9)

jorgebastida avatar jorgebastida commented on June 3, 2024

Glue supports both png and jpeg files as input. What are you trying to do? create a sprite using jpeg files or what do you want to do is to create a jpeg sprite?

from glue.

jorgebastida avatar jorgebastida commented on June 3, 2024

Hi @jvsummeren have you see my comment? Could you please give me more information about the issue? Thanks!

from glue.

jvsummeren avatar jvsummeren commented on June 3, 2024

Hi @jorgebastida,

Say you want to create a hover effect with a grayscale and a colored photo or when you want to combine 15 100x100 thumbnails.

from glue.

jorgebastida avatar jorgebastida commented on June 3, 2024

Sorry @jvsummeren I dont get your point :(
Are you talking about building JPG Sprites or using JPG's as source images to create a PNG sprite?

from glue.

jvsummeren avatar jvsummeren commented on June 3, 2024

Building a JPG sprite if all source images are JPG's. With mixed sources I think a PNG output would be better.

from glue.

jorgebastida avatar jorgebastida commented on June 3, 2024

Gotcha, sounds interesting... I'll give it a try

from glue.

jvsummeren avatar jvsummeren commented on June 3, 2024

Ok, cool :)

from glue.

glasserc avatar glasserc commented on June 3, 2024

Hi, I'd like this too! We hackishly implemented it in my personal fork, but official support would be better, of course.

One thing to note is that if your input images are JPEG and you decompress them and recompress them as a big sprited JPEG, quality is going to be that much worse. So we might want to take PNG input and only compress them to JPEG once at output.

As a result, I think using @jvsummeren 's logic to choose JPG or PNG is fine but I would also like to see an option to let the user override the logic and set an output format manually. Ideally, glue should warn if you choose output=JPEG and your source images have transparency.

@jorgebastida You said that you had a feature/jpeg branch where you'd started working on this, but I don't see it here. Have you pushed the branch yet? I can try to help by reviewing code if you like.

from glue.

flea89 avatar flea89 commented on June 3, 2024

Hi there, seems that this issue has been opened for a while, any thoughts to add this features,
I thinks that for an already great tool like glue, having the ability to create jpg sprite would be awesome. As you know the different in size between png and jpg could be of the order of 10x and having jpg output ability would mean a huge performance speed up.

from glue.

Related Issues (20)

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.