Permalink
Browse files

Image View Mode Demo

  • Loading branch information...
Cameron McEfee
Cameron McEfee committed Mar 18, 2011
1 parent 8bf009f commit 8e95f70c9c47168305970e91021072673d7cdad8
BIN -118 Bytes (99%) 1_normal.jpg
Binary file not shown.
BIN +9.39 KB (150%) 2_transparentPixels.png
Binary file not shown.
BIN +315 Bytes (100%) 3_tooLarge.jpg
Binary file not shown.
BIN -8.08 KB (60%) 4_differentSize.jpg
Binary file not shown.

174 comments on commit 8e95f70

@jessegreathouse

This comment has been minimized.

Copy link

jessegreathouse replied Mar 23, 2011

HAY WUTS GOING ON IN HERE?

@jgyllen

This comment has been minimized.

Copy link

jgyllen replied Mar 23, 2011

wow. cool stuff!

@eddiejaoude

This comment has been minimized.

Copy link

eddiejaoude replied Mar 24, 2011

@github LOVE IT!

@pokonski

This comment has been minimized.

Copy link

pokonski replied Mar 27, 2011

Amazingly awesome, as Jobs would say!

@haqu

This comment has been minimized.

Copy link

haqu replied Apr 18, 2011

nice indeed

@eamonnmag

This comment has been minimized.

Copy link

eamonnmag replied Apr 19, 2011

Way cool.

@d2s

This comment has been minimized.

Copy link

d2s replied Apr 30, 2011

Certainly, this is great thing to have. :)

Combines features similar to Kaleidoscope to GitHub and makes this service feel much more full versed for web designers. :)

@green-coder

This comment has been minimized.

Copy link

green-coder replied May 23, 2011

Génial !

@nickdunn

This comment has been minimized.

Copy link

nickdunn replied May 24, 2011

Cool story, bro

@gorimaru

This comment has been minimized.

Copy link

gorimaru replied Aug 11, 2011

画像diffまでできるのか…すごすぎる!

@eamonnmag

This comment has been minimized.

Copy link

eamonnmag replied Aug 11, 2011

^ Exactly! :)

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied Oct 27, 2011

I wish github allowed unsubscribing from any thread. Kind of makes you wish you never wrote that comment...

@aronwoost

This comment has been minimized.

Copy link

aronwoost replied Oct 27, 2011

+1 @mrdoob

@pokonski

This comment has been minimized.

Copy link

pokonski replied Oct 27, 2011

@mrdoob, you can do that :P Check at the bottom of this page:

Email notifications for these commit notes are on. Disable email notifications for this commit

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied Oct 27, 2011

I'm not talking about emails. I'm talking about notifications.

I already have all email disabled, but I still get a notification inside github when someone writes in this thread with no option to unsubscribe.

Hope it's clear now.

@kirkegaard

This comment has been minimized.

Copy link

kirkegaard replied Oct 27, 2011

+1!

@saymoon

This comment has been minimized.

Copy link

saymoon replied Nov 2, 2011

soo cool, great job!

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied Nov 2, 2011

FFS @github!

@liuxun349

This comment has been minimized.

Copy link

liuxun349 replied Jan 5, 2012

oh,yeah!so cool

@goldenlove

This comment has been minimized.

Copy link

goldenlove replied Feb 28, 2012

Good job~

@BenBergman

This comment has been minimized.

Copy link

BenBergman replied May 12, 2012

This looks great, but I can't seem to click the buttons to change mode. In Chromium on Arch Linux and Chrome/"Browser" on Android 4.0.1, the buttons are vertically stacked and not clickable. On Firefox in Arch Linux, the buttons aren't even there.

@cameronmcefee

This comment has been minimized.

Copy link
Owner

cameronmcefee replied May 12, 2012

@BenBergman, looks like accidentally broke it. I'll see if we can get that fixed asap.

@cameronmcefee

This comment has been minimized.

Copy link
Owner

cameronmcefee replied May 12, 2012

@BenBergman Thanks for the heads up. It should be back in action again.

@BenBergman

This comment has been minimized.

Copy link

BenBergman replied May 12, 2012

Well, I spoke too soon. The demo doesn't work, but my own repo does.

Edit: I see you just happened to fix it between me checking your repo and mine. Thanks for the quick fix!

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied May 12, 2012

@cameronmcefee While you're at it, can you make it so one can unsubscribe from threads? Thanks!

@yimi128

This comment has been minimized.

Copy link

yimi128 replied Aug 1, 2012

WOW! cool

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied Aug 6, 2012

FFS @github!

@mrdoob

This comment has been minimized.

Copy link

mrdoob replied Aug 6, 2012

Oh wow. They just added the feature. Thanks @github!

/me happily unwatches this thread.

@ghost

This comment has been minimized.

Copy link

ghost replied Aug 7, 2012

@hidoos

This comment has been minimized.

Copy link

hidoos replied Aug 22, 2012

so cool!

@zlcolin

This comment has been minimized.

Copy link

zlcolin replied Jan 8, 2013

wow, so great.

@Awezome

This comment has been minimized.

Copy link

Awezome replied Jan 19, 2013

awesome !

@lashou-hxh

This comment has been minimized.

Copy link

lashou-hxh replied Feb 17, 2013

very good

@willddy

This comment has been minimized.

Copy link

willddy replied May 14, 2013

awesome

@hiramtan

This comment has been minimized.

Copy link

hiramtan replied May 31, 2013

不错……

@inchyea

This comment has been minimized.

Copy link

inchyea replied Jun 22, 2013

Awesome;

@wenxiongli

This comment has been minimized.

Copy link

wenxiongli replied Sep 25, 2013

very good

@ream88

This comment has been minimized.

Copy link

ream88 replied Apr 23, 2014

Where did the difference mode go?

@ottijp

This comment has been minimized.

Copy link

ottijp replied Apr 28, 2014

attractive!

@MartinDelille

This comment has been minimized.

Copy link

MartinDelille replied Apr 30, 2014

👍

@Alexhust

This comment has been minimized.

Copy link

Alexhust replied May 22, 2014

Pretty Good!

@duguying

This comment has been minimized.

Copy link

duguying replied Jun 6, 2014

wow 😄 pretty! is there any demo for psd files?

@jsw0528

This comment has been minimized.

Copy link

jsw0528 replied Jun 6, 2014

强帖留名

@hoosin

This comment has been minimized.

Copy link

hoosin replied Jun 6, 2014

给力啊

@aditx

This comment has been minimized.

Copy link

aditx replied Jun 7, 2014

Cool :)

@xiaojuntong

This comment has been minimized.

Copy link

xiaojuntong replied Jun 7, 2014

niubilitily

@tomeanand

This comment has been minimized.

Copy link

tomeanand replied Jun 9, 2014

awesome!

@fengsp

This comment has been minimized.

Copy link

fengsp replied Jun 9, 2014

So cool!

@VTwo-Group

This comment has been minimized.

Copy link

VTwo-Group replied Jun 9, 2014

Awesome! واقعا شگفت انگیزه.

@gindis

This comment has been minimized.

Copy link

gindis replied Jun 10, 2014

Cool!

@huanglong

This comment has been minimized.

Copy link

huanglong replied Jun 10, 2014

Good job!

@King-fly

This comment has been minimized.

Copy link

King-fly replied Jun 14, 2014

非常不错

@emir

This comment has been minimized.

Copy link

emir replied Jun 17, 2014

awesome!

@wasfever

This comment has been minimized.

Copy link

wasfever replied Jul 6, 2014

nice!

@ThomasAy

This comment has been minimized.

Copy link

ThomasAy replied Jul 7, 2014

Guys, it's been 3 years ! Where is this awesome feature ?

@ipa-fmw-ms

This comment has been minimized.

Copy link

ipa-fmw-ms replied Jul 7, 2014

Will there be support for more than two diffs? (like 10 or so)
I would love to see a range of commits in the onion mode

@ZhihaoLau

This comment has been minimized.

Copy link

ZhihaoLau replied Jul 19, 2014

awesome

@luck2011

This comment has been minimized.

Copy link

luck2011 replied Jul 22, 2014

really

@EllenXi

This comment has been minimized.

Copy link

EllenXi replied Jul 22, 2014

cool

@wangkailang

This comment has been minimized.

Copy link

wangkailang replied Jul 24, 2014

on the way

@sunapi386

This comment has been minimized.

Copy link

sunapi386 replied Jul 28, 2014

wunderbar

@taotao9125

This comment has been minimized.

Copy link

taotao9125 replied Oct 5, 2014

wow

@shangguangjie

This comment has been minimized.

Copy link

shangguangjie replied Oct 27, 2014

very cool

@tf-best

This comment has been minimized.

Copy link

tf-best replied Oct 30, 2014

cool

@leehung-witkey

This comment has been minimized.

Copy link

leehung-witkey replied Nov 3, 2014

cool

@robertwbradford

This comment has been minimized.

Copy link

robertwbradford replied Nov 11, 2014

Good stuff. @cameronmcefee, is there a roadmap for supporting other file formats? .ai files would be really great!

@longhua

This comment has been minimized.

Copy link

longhua replied Nov 14, 2014

It is great!

@Domonlee

This comment has been minimized.

Copy link

Domonlee replied Nov 15, 2014

It is great!

@stevezeng

This comment has been minimized.

Copy link

stevezeng replied Dec 23, 2014

这个太好了

@BuddyZH

This comment has been minimized.

Copy link

BuddyZH replied Jan 14, 2015

very good

@lisiqiong

This comment has been minimized.

Copy link

lisiqiong replied Jan 14, 2015

so cool

@woodlou

This comment has been minimized.

Copy link

woodlou replied Jan 14, 2015

cool~

@istro

This comment has been minimized.

Copy link

istro replied Mar 19, 2015

SO awesome. I just discovered it accidentally when I changed some images. Nice surprise. Thanks guys, you rock!!!

@iqiancheng

This comment has been minimized.

Copy link

iqiancheng replied Apr 8, 2015

amazing!

@MarsCWD

This comment has been minimized.

Copy link

MarsCWD replied Jul 2, 2015

prefect!!!

@xsd0720

This comment has been minimized.

Copy link

xsd0720 replied Jul 3, 2015

wow!

@kkd927

This comment has been minimized.

Copy link

kkd927 replied Jul 27, 2015

awesome!!

@anton-matosov

This comment has been minimized.

Copy link

anton-matosov replied Aug 21, 2015

super cool image diff!!

@xxg3053

This comment has been minimized.

Copy link

xxg3053 replied Aug 28, 2015

nice!

@wy2005

This comment has been minimized.

Copy link

wy2005 replied Aug 31, 2015

漂亮

@linkinparkzlz

This comment has been minimized.

Copy link

linkinparkzlz replied Sep 3, 2015

cool

@nooop3

This comment has been minimized.

Copy link

nooop3 replied Sep 20, 2015

amazing!!!

@Antony138

This comment has been minimized.

Copy link

Antony138 replied Oct 16, 2015

Awesome!

@LineToAnyWhere

This comment has been minimized.

Copy link

LineToAnyWhere replied Mar 2, 2016

cool!

@hungryfoolisher

This comment has been minimized.

Copy link

hungryfoolisher replied Mar 27, 2016

awesome!

@soberzhou

This comment has been minimized.

Copy link

soberzhou replied Mar 30, 2016

It's so awesome !
BTW, i hope can support .psd & .sketch

@kuangyun

This comment has been minimized.

Copy link

kuangyun replied Mar 30, 2016

so great!

@AdamQwy

This comment has been minimized.

Copy link

AdamQwy replied May 26, 2016

The function is so cool! BUT!

where's the module of Difference .
I just saw the illustration at the blog titled Behold: Image view modes . And it guided me here.
This picture is what I copyed form the blog.
image
Did you guys remove this mode.
I thought it's the coolest mode.
What a pity 😞

@snowluliang

This comment has been minimized.

Copy link

snowluliang replied Aug 16, 2016

This is awesome

@xsd0720

This comment has been minimized.

Copy link

xsd0720 replied Aug 16, 2016

@bluzioo

This comment has been minimized.

Copy link

bluzioo replied Dec 4, 2016

Cool, it's impressive

@daohewang

This comment has been minimized.

Copy link

daohewang replied May 31, 2017

I can't say anything but cool

@liujunyang

This comment has been minimized.

Copy link

liujunyang replied Jul 11, 2017

so cool

@khevbin21

This comment has been minimized.

Copy link

khevbin21 replied Aug 1, 2017

does this project work on fingerprints?

@PerterFung

This comment has been minimized.

Copy link

PerterFung replied Sep 9, 2017

GitHub入门与实践 take me here

@Beplocks

This comment has been minimized.

Copy link

Beplocks replied Nov 4, 2017

WTF D:

@balalaXD

This comment has been minimized.

Copy link

balalaXD replied Jan 24, 2018

WHERE IS THE DIFFERENCE MODE GONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Hey, Buddy, just hold on... calm down...

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from PIL import Image
from PIL import ImageChops 

def compare_images(old_pic_path, new_pic_path, diff_pic_path=None):
    """
    Compare the difference between two pictures, show results
    """
    old_pic = Image.open(old_pic_path)
    new_pic = Image.open(new_pic_path)
 
    diff_pic = ImageChops.difference(old_pic, new_pic)
 
    if diff_pic.getbbox() is None:
        return
    
    diff_pic.show()
    
    if diff_pic_path:
       diff_pic.save(diff_pic_path)
@colinli

This comment has been minimized.

Copy link

colinli replied May 10, 2018

这个功能很赞啊

@Power008

This comment has been minimized.

Copy link

Power008 replied Oct 20, 2018

cool!

Please sign in to comment.