karls / collage Goto Github PK
View Code? Open in Web Editor NEWA clean, minimal image processing library for Clojure
License: Eclipse Public License 1.0
A clean, minimal image processing library for Clojure
License: Eclipse Public License 1.0
This is not an issue, you can actually close it.
Thank you for this clean and minimal library! It only does a few things but it does them well :-)
Hi! This is looking good. The API looks great.
Have you considered adding support for converting to Googles WebP format? https://developers.google.com/speed/webp/
Is it something that fits within the boundaries of this project?
Thanks :-)
Hi!
It's becoming a best practice to serve your large-ish JPGs as progressive. Is there any support for this in collage or imagez? Or is it something worth looking at?
Thanks!
I'm looking for a way to rotate an image with a transparent background and found your library. I understand the merits of only allowing thetas multiple of 90deg, but that's a concern that I don't have at all (there's no background anyway, so it's fine to lose information there).
I looked at the source code but don't really know where to start, geometry is not my strong suit. Is this something complicated to implement? If it's something you don't/can't do, could you give me some pointers?
Hi
Deploying a project based on Collage to tomcat, I got an error which is new to me:
Caused by: java.lang.UnsupportedClassVersionError: fivetonine/collage/Frame : Un
supported major.minor version 51.0 (unable to load class fivetonine.collage.Fram
e), compiling:(mw_ui/render_world.clj:1:1)
I cloned and compiled Collage, and noted one deprecated method call, which I fixed as follows:
diff --git a/project.clj b/project.clj
index d0a438b..a683f28 100644
--- a/project.clj
+++ b/project.clj
@@ -1,4 +1,4 @@
-(defproject fivetonine/collage "0.2.0"
+(defproject fivetonine/collage "0.2.1"
:description "Clean, minimal image processing library for Clojure"
:url "https://github.com/karls/collage"
:license {:name "Eclipse Public License"
diff --git a/src/fivetonine/collage/java/Frame.java b/src/fivetonine/collage/jav
index 9c282d1..b6dafd2 100644
--- a/src/fivetonine/collage/java/Frame.java
+++ b/src/fivetonine/collage/java/Frame.java
@@ -14,7 +14,7 @@ public class Frame {
frame.add(imageLabel);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.pack();
frame.show();
frame.setVisible(true);
return frame;
However, while possibly useful, that proved not to be my problem. Instead it was that the maven/leiningen artefact is compiled with Java 7, which is slightly more modern than my production web server. I fixed that issue as follows:
diff --git a/project.clj b/project.clj
index d0a438b..f50717a 100644
--- a/project.clj
+++ b/project.clj
@@ -1,4 +1,4 @@
-(defproject fivetonine/collage "0.2.0"
+(defproject fivetonine/collage "0.2.1"
:description "Clean, minimal image processing library for Clojure"
:url "https://github.com/karls/collage"
:license {:name "Eclipse Public License"
@@ -14,6 +14,7 @@
:resource-paths ["resources" "resources/webp-imageio.jar"]
:java-source-paths ["src/fivetonine/collage/java"]
This fixed the issue.
I'm not suggesting that it's necessary to use old versions of Java for publicly available artefacts, but I thought I'd post this issue report in case someone else later has the same problem.
is there a way to work with an image stream and opposed to writing to file getting the file stream... Basically looking to pull a bunch of images on S3 convert and write back to S3... writing to disk both the read and the converted file to write back up to S3 seems a bit silly, but I am not sure if I could use this without having the temp files. Just learning clojure so this might be obvious to some folks.
Hi,
I'm the author of imagez and wondered if you'd like to collaborate on making a single great image processing library for Clojure.
It would be a shame to waste effort and confuse potential users by duplicating work. Also it's more fun to collaborate on open source projects!
Let me know,
Mike.
Hi!
Do you know if it is possible to pre-emptively check the file size of an image, without doing any IO?
Say, instead of (save image :quality 0.8)
, do (file-size image :quality 0.8)
?
I guess I could always save multiple versions and compare, but it seems wasteful of disk access when the library probably already knows how many bytes it will become.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.