Resources and Support | |
![]() |
![]() |
![]() ![]() |
Author | Message |
Andreonh
Seaman ![]() ![]() Joined: 12 March 2016 Online Status: Offline Posts: 5 |
![]() ![]() ![]() Posted: 14 May 2013 at 3:38pm |
So, I'm not quite sure where to put this since there isn't an "Off-Topic" section.
I've been lurking here for, I dunno, 2 months or so, and have seen repeatedly, someone who posted pixel art that was magnified, and immediately got told not to do that. Yet it seems the people who post a decent sum of art, say 10 or 15 decent images, are left out of the I can understand the ramifications of scaling it by strange integers or ratios, that makes sense. My actual question is why does everyone purport the zoom feature to be so great? So far, I have only noticed that it blurs the image, causing it to look bad at scaled resolutions. This is in contrast to being able to scale it up myself without a scaling algorithm in play, like Nearest Neighbor, or BiCubic interpolation. So why the hatred for scaled pixel art if scaled correctly? Just wanting friendly discussion, not trying to seem on the offensive here. Just find it mildly interesting. |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
Because Pixeljoint is dedicated to art on the pixel level and it is about pixelart then art at 100% is best because all members want to see the art in true size for study, ejoying, learning purposes. The zoom feature is there to then further inspect and study. Most browsers used to be good even when zooming and its just the default PJ stance to have art at 1X.
In the last few years browsers have added the 'blur' effect and while most don't even notice it does affect pixelart and we now will accept prescaled pixelart for those who have this problem with their browsers. This is of course always true when the art description syas its designed to be prezoomed in which case that trumps it all. The is still a way to have zoomed art be sharp thru addons and some browsers are still good. The resource section somewhere has the addon and the script to add to a browser to eliminate blurring. I think this works with everything but Chrome. So there is no hate for scaled art. There is only love for pure pixels.
|
|
|
|
![]() |
|
AtskaHeart
Commander ![]() ![]() Joined: 06 June 2020 Online Status: Offline Posts: 114 |
![]() ![]() ![]() |
Not everybody sees the blurry effect in images when scaled through the zoom feature (for example, in my PC I see images blurry, but that doesn't happen when I use a PC in my college.
What I would do is post images in 1x, and then a link to a magnified image (Nearest Neighbour algorithm) for those who see them blurry. Edit: You replied faster than me xD! Edited by AtskaHeart - 14 May 2013 at 4:20pm |
|
![]() |
|
yrizoud
Commander ![]() ![]() Joined: 03 May 2021 Location: France Online Status: Offline Posts: 343 |
![]() ![]() ![]() |
When you pre-scale by x2, I can no longer view at odd factors like x3, and x3 is the ratio I use most (when I can).
It's especially a problem for wide pieces, since PJ doesn't provide a horizontal scrollbar... If I try to zoom even just once, the borders are cut. |
|
![]() |
|
king_bobston
Midshipman ![]() ![]() Joined: 21 October 2019 Online Status: Offline Posts: 54 |
![]() ![]() ![]() |
Hey, I noticed that I get the blury effect on pixeljoint but not on pixelation. Can't we ask for permission for their zoom script? It seems to support more browsers. I have firefox on
Edit: win7, not win8! Edited by king_bobston - 28 May 2013 at 4:58am |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
See if you can find it but as far as I know its not the site that determines blurring its the browser.
|
|
|
|
![]() |
|
yrizoud
Commander ![]() ![]() Joined: 03 May 2021 Location: France Online Status: Offline Posts: 343 |
![]() ![]() ![]() |
Ah I just checked, PJ gallery and Pixelation both use the same CSS "hints" for browsers to behave properly :
img.zoom { image-rendering: optimizeSpeed; /* Legal fallback */ image-rendering: -moz-crisp-edges; /* Firefox */ image-rendering: -o-crisp-edges; /* Opera */ image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */ image-rendering: optimize-contrast; /* CSS3 Proposed */ -ms-interpolation-mode: nearest-neighbor; /* IE8+ */ } But PJ forum doesn't have it... |
|
![]() |
|
king_bobston
Midshipman ![]() ![]() Joined: 21 October 2019 Online Status: Offline Posts: 54 |
![]() ![]() ![]() |
Originally posted by jalonso See if you can find it but as far as I know its not the site that determines blurring its the browser. ... b-but but I-... Originally posted by king_bobston Hey, I noticed that I get the blury effect on pixeljoint but not on pixelation. (...) I beg to differ! ![]() And no, I don't switch browsers or pc's to view different sites. |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
I've sent Sedge a note with yrizoud's post and see why the forum does not have that code included.
|
|
|
|
![]() |
|
Hapiel
Rear Admiral ![]() ![]() Joined: 30 June 2023 Online Status: Offline Posts: 3266 |
![]() ![]() ![]() |
You can also include this CSS code in firefox style. This will make gifs or png
s on any website crispy. For a manual see my news post here. |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
We just added the css script yrizoud posted.
@all, refresh test and report making sure you mention what browser you use at least. |
|
|
|
![]() |
|
Cammymoop
Midshipman ![]() ![]() Joined: 27 July 2022 Online Status: Offline Posts: 40 |
![]() ![]() ![]() |
Crisp zooming on forums confirmed
computer: Windows 7 Firefox 21 |
|
![]() |
|
Manupix
Commander ![]() ![]() Joined: 05 November 2024 Online Status: Offline Posts: 771 |
![]() ![]() ![]() |
This thread needs an image for testing purposes, amirite?
![]() W7 + Fx21. Aaaaaand the result is ... CRISP!!! CONGRATS!!! ![]() Edited by Manupix - 26 May 2013 at 3:11pm |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
IE, Chrome and Safari anyone?
Opera is fine and confimed on PCs. |
|
|
|
![]() |
|
Numberplay
Commander ![]() ![]() Joined: 28 October 2010 Online Status: Offline Posts: 130 |
![]() ![]() ![]() |
Still blurry on Chrome.
|
|
![]() |
|
king_bobston
Midshipman ![]() ![]() Joined: 21 October 2019 Online Status: Offline Posts: 54 |
![]() ![]() ![]() |
Pixeljoint Forum just got more crisp! Works for me.
I'm still on Firefox on Win7... wait, wow, I noticed that I posted I use win8 which is wrong, I use win7. I should get more sleep to prevent these errors ![]() |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
@Numberplay, fixing blurs is not possible in Chrome because the browser code can't be overridden. This is what others more code savvy have said before.
|
|
|
|
![]() |
|
Manupix
Commander ![]() ![]() Joined: 05 November 2024 Online Status: Offline Posts: 771 |
![]() ![]() ![]() |
Also I just noticed that the zoom factor increments +1 per click, that's so much better than x2 as in the gallery
![]() |
|
![]() |
|
yrizoud
Commander ![]() ![]() Joined: 03 May 2021 Location: France Online Status: Offline Posts: 343 |
![]() ![]() ![]() |
! I had never noticed !
In /pixels/includes/js/zoom.js, there's the following function : function zoom(type,imgx,iWidthIn,iHeightIn) { imgd = findDOM(imgx); //alert(imgd.width + ", " + imgd.height); if (type=="+" && imgd.width >= iWidthIn) { imgd.width = 2*imgd.width; imgd.height = 2*imgd.height; } if (type=="-" && imgd.width > iWidthIn) { imgd.width = imgd.width/2; imgd.height = imgd.height/2; } }It should be changed to something like this: function zoom(type,imgx,iWidthIn,iHeightIn) { imgd = findDOM(imgx); var factor = imgd.width/iWidthIn; if (type=="+" && factor<16) { imgd.width = (factor+1)*iWidthIn; imgd.height = (factor+1)*iHeightIn; } if (type=="-" && factor>1) { imgd.width = (factor-1)*iWidthIn; imgd.height = (factor-1)*iHeightIn; } } |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
oh noes...I don't get that :(
@ yrizoud, Can you post what we need to do and what it is we are doing exactly, thx. Is the new code you suggested correct or not o.O |
|
|
|
![]() |
|
Hapiel
Rear Admiral ![]() ![]() Joined: 30 June 2023 Online Status: Offline Posts: 3266 |
![]() ![]() ![]() |
This code from yrizoud would make the zoom buttons on the art pages increase the artwork by factor 1 instead of x2.
Right now the steps are: 1x, 2x, 4x, 8x, and with Yrizoud's script it would be 1x, 2x, 3x, 4x, 5x etc. In the forum this already happens, in the gallery this does not. |
|
![]() |
|
jalonso
Admiral ![]() ![]() Joined: 29 November 2022 Online Status: Offline Posts: 13537 |
![]() ![]() ![]() |
I've never noticed this zoom discrepancy.
So what does PJ want best on both the gallery and the forum: 1x 2x 4x 8x etc or 1x 2x 3x 4x etc |
|
|
|
![]() |
|
Hapiel
Rear Admiral ![]() ![]() Joined: 30 June 2023 Online Status: Offline Posts: 3266 |
![]() ![]() ![]() |
Most definitely 1,2,3,4x. Just like Manupix I dislike the gallery zoom.. Of course this could be the right moment to make a list of fixable flaws and fix them for Sedge. Sadly only the javascripts and mark up files are easy to read, the server side code is not of course but this should be enough to also fix:
Also, I am interested to hear about PJ's security. I have seen so many old websites recently where hackers got access to the database. Often because of outdated modules with problems. An advantage of sedge's custom system is that there are no standard modules that a hacking bot might crawl for, on the other hand not using standard modules means we never get an update for anything. These are all relatively easy to fix problems, and with sedges support we could probably fix at least half of them ourselves, and be clear about what we want for the rest of the required updates... Edited by Hapiel - 30 May 2013 at 6:58am |
|
![]() |
|
![]() ![]() |
||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |