Giter Site home page Giter Site logo

collage's People

Contributors

cjohansen avatar karls avatar magnars avatar stlk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

collage's Issues

Thank you

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 :-)

Compilation target/Deprecated method call in Frame

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"]

  • :javac-options ["-target" "1.6" "-source" "1.6" "-Xlint:-options"]
    ;; In order to actually use the WebP format, the JVM uses native code that
    ;; needs to be compiled by the user. The JVM loads the native code from the
    ;; native library path, which is set here. This may be overridden when

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.

Collaborate?

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.

working with streams

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.

Allow arbitrary rotation angle

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?

Pre-IO file size check?

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.

Support for saving progressive jpgs?

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!

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.