Get larger images from WoT, let the browser scale it down.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Feb 2014 05:48:10 +0000 (06:48 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Feb 2014 05:48:10 +0000 (06:48 +0100)
This will improve image quality on Retina displays.

src/main/resources/templates/include/soneMenu.html
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index f599eb4..fc51e79 100644 (file)
@@ -4,7 +4,7 @@
                <%ifnull !sone.profile.avatar>
                        <%sone.profile.avatar|image-link max-width==64 max-height==64 mode==enlarge title=sone.niceName>
                <%else>
-                       <img src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&amp;width=64&amp;height=64" width="64" height="64" alt="Avatar Image" />
+                       <img src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&amp;width=128&amp;height=128" width="64" height="64" alt="Avatar Image" />
                <%/if>
        </div>
        <div class="inner-menu">
index efc3d53..1c53d42 100644 (file)
@@ -9,7 +9,7 @@
                        <%ifnull !post.sone.profile.avatar>
                                <%post.sone.profile.avatar|image-link max-width==48 max-height==48 mode==enlarge title=="Avatar Image">
                        <%else>
-                               <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&amp;width=48&amp;height=48" width="48" height="48" alt="Avatar Image" />
+                               <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&amp;width=96&amp;height=96" width="48" height="48" alt="Avatar Image" />
                        <%/if>
                <%else>
                        <img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
index 449a235..ab20441 100644 (file)
@@ -8,7 +8,7 @@
                <%ifnull !reply.sone.profile.avatar>
                        <% reply.sone.profile.avatar|image-link max-width==36 max-height==36 mode==enlarge title=="Avatar Image">
                <%else>
-                       <img src="/WebOfTrust/GetIdenticon?identity=<% reply.sone.id|html>&amp;width=36&height=36" width="36" height="36" alt="Avatar Image" />
+                       <img src="/WebOfTrust/GetIdenticon?identity=<% reply.sone.id|html>&amp;width=72&height=72" width="36" height="36" alt="Avatar Image" />
                <%/if>
        </div>
        <div class="inner-part">