This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 54 - Pages: 4 [ 1 2 3 4 | Next ] - Last Post: 30-May-2012 15:32 Last Post By: sarahschoelzel
sarahschoelzel

Posts: 14
Registered: 2-Apr-2012
Filters like in Instagram
Posted: 11-May-2012 14:07
 
  Click to reply to this thread Reply
Attachment JInstagram.jar (283.3 KB)
Hi,
I wrote some filters that you could use in your albums or integrate in your skins.
I tried to clone some effects from the app "instagram". In addition, there are some other effects I liked (e.g. "vintage" - old photo effect).
With these filters, you get an easy way to give your photos and albums a totally different style.

Have fun!
I'd be glad to get some feedback.
Regards, Sarah
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Filters like in Instagram
Posted: 11-May-2012 14:37   in response to: sarahschoelzel in response to: sarahschoelzel
 
  Click to reply to this thread Reply
Thanks Sarah, please also pass a minimal usage example, for instance a one-liner to be put inside "init.bsh" of a skin. It's hard to know how to use the filter otherwise.
sarahschoelzel

Posts: 14
Registered: 2-Apr-2012
Re: Filters like in Instagram
Posted: 11-May-2012 15:21   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment JInstagram.jar (271.3 KB)
I attached the .jar-Filter a second time. I deleted the sharpen-Effect from my filters because I noted that this is done automatically when you make an album. Sorry, that I forget that.

How to use the filters?
At first you unpack the .jar-file in the plugins folder of jAlbum's program directory.
Then you have two different ways to use my filters.

1. integrate in skin:
- Create init.bsh file
- Code: import net.jalbum.filters.instagram.*;
engine.addFilter(new +name+());
- for example: engine.addFilter(new Vintage());

2. generate user Variable:

- go to Ablum Settings/Advanced/User Variables
-name: any name you like
- value: class=net.jalbum.filters.instagram.name
-e.g. filter1 ; class=net.jalbum.filters.instagram.Vintage

monkeyboy

Posts: 98
Registered: 21-Jun-2008
Re: Filters like in Instagram
Posted: 11-May-2012 15:45   in response to: sarahschoelzel in response to: sarahschoelzel
 
  Click to reply to this thread Reply
Nice work!
I'll experiment more with these filters over the next few days.
However, it looks like the Brannin and Lofi classes have not been made public and are currently unusable.
sarahschoelzel

Posts: 14
Registered: 2-Apr-2012
Re: Filters like in Instagram
Posted: 11-May-2012 16:26   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
Attachment JInstagram.jar (271.4 KB)
thanks :)
oh yes, you're right. I don't know how that could happen.
But I fixed that.
monkeyboy

Posts: 98
Registered: 21-Jun-2008
Re: Filters like in Instagram
Posted: 11-May-2012 16:40   in response to: sarahschoelzel in response to: sarahschoelzel
 
  Click to reply to this thread Reply
That was quick! Thanks!
I'll incorporate these filters into the next version of my SimpleViewer skin.
jGromit

Posts: 7,682
Registered: 31-Jan-2006
Re: Filters like in Instagram
Posted: 11-May-2012 16:42   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
For those of us with no access to the original app, where are the filters listed and defined?
monkeyboy

Posts: 98
Registered: 21-Jun-2008
Re: Filters like in Instagram
Posted: 11-May-2012 17:06   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I just unzipped the .jar file and had a look around.
Filters are: Brannin, BranninDark, EarlyBird, Generation, Hefe, Lofi, SoftDaydream and Vintage. None of the filters have any user-changeable settings.
jGromit

Posts: 7,682
Registered: 31-Jan-2006
Re: Filters like in Instagram
Posted: 11-May-2012 17:27   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
I'm just getting null pointer exceptions, trying to apply any of the filters with a User Variable.
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Filters like in Instagram
Posted: 11-May-2012 17:28   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
Unzipping is a clever way to find out the names of the filters, but other than that, you should be able to simply drop that jar file inside jAlbum's "ext" folder. No unzipping needed. Use the "ext" folder under jAlbum's "config" folder to avoid having your adjustments overwritten by jAlbum updates. Use Tools->Open directories->Config directory to access the config directory, then put the jar file in the "ext" folder there.

If you wish to bundle these filters with a skin, just put the jar file inside the "lib" folder of a skin.
jGromit

Posts: 7,682
Registered: 31-Jan-2006
Re: Filters like in Instagram
Posted: 11-May-2012 17:32   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
With the .jar file in ext, I'm now getting a new error:
An unexpected error occured. Please see detailed description below:
 
java.lang.IllegalStateException: Source and destination must store pixels as INT.
	at net.jalbum.filters.instagram.BlendComposite$BlendingContext.compose(BlendComposite.java:194)
	at sun.java2d.loops.Blit$AnyBlit.Blit(Unknown Source)
	at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
	at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
	at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
	at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
	at sun.java2d.pipe.ValidatePipe.copyImage(Unknown Source)
	at sun.java2d.SunGraphics2D.copyImage(Unknown Source)
	at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
	at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
	at net.jalbum.filters.instagram.Vintage.filter(Vintage.java:80)
	at net.jalbum.filters.instagram.Vintage.filter(Vintage.java:113)
	at se.datadosen.jalbum.AlbumBean.processFilters(AlbumBean.java:3210)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImage(AlbumBean.java:4462)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImages(AlbumBean.java:4359)
	at se.datadosen.jalbum.AlbumBean$ImageProcessingTask.call(AlbumBean.java:4298)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Filters like in Instagram
Posted: 11-May-2012 17:34   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Please attach an original JPEG that causes that error.
jGromit

Posts: 7,682
Registered: 31-Jan-2006
Re: Filters like in Instagram
Posted: 11-May-2012 17:38   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment bears1.jpg (73.4 KB)
Yes, I've discovered that the filters are picky about the images you feed them. Newer stuff, from my Nikon, works fine. But older images....

Attached.
jGromit

Posts: 7,682
Registered: 31-Jan-2006
Re: Filters like in Instagram
Posted: 11-May-2012 17:57   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Does use of the "Instagram" name raise any trademark/copyright issues?
davidekholm

Posts: 3,692
Registered: 18-Oct-2002
Re: Filters like in Instagram
Posted: 11-May-2012 18:05   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
EarlyOut wrote:
Does use of the "Instagram" name raise any trademark/copyright issues?

I guess it will, so we should have it renamed. Suggestions?
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums