Comments (9)
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.
Hi @jvsummeren have you see my comment? Could you please give me more information about the issue? Thanks!
from glue.
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.
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.
Building a JPG sprite if all source images are JPG's. With mixed sources I think a PNG output would be better.
from glue.
Gotcha, sounds interesting... I'll give it a try
from glue.
Ok, cool :)
from glue.
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.
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)
- Allow ratio_suffix delimiter to be customised
- Crashes on filenames with non-english (non-ascii?) characters
- Support jinja2 2.8 HOT 3
- Unicode in filenames issue with generate_css_name HOT 1
- Ratios are not ordered correctly
- You've found a bug!
- You've found a bug!
- git status
- Won't run on Ubuntu 16.0.4 HOT 1
- [Feature Request] Generate CSS based on % HOT 3
- Path parameter doesn't support non-ANSI.
- Could add inverse functions for glue?
- Using glue for sprite Animations
- Support Jinja2 2.10 HOT 2
- 'module' object has no attribute 'VERSION' HOT 1
- Can't create sprite with glue
- Typo; extra single quote, but irrelevant really
- glue command fails with error
- Glue does not support decimal margins
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glue.