投稿時間:2021-08-08 07:11:32 RSSフィード2021-08-08 07:00 分まとめ(11件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Google カグア!Google Analytics 活用塾:事例や使い方 Search Consoleでサイトマップが取得できませんでしたを直すチェックリストと原因不明のケース https://www.kagua.biz/seo/wmt/20210808a1.html searchconsole 2021-08-07 21:00:58
海外TECH DEV Community Pixelart and the image-rendering Paradox https://dev.to/auroratide/pixelart-and-the-image-rendering-paradox-2p8k Pixelart and the image rendering ParadoxCSS offers a nifty property called image rendering which lets you influence how images scale Normally when you take a small image and make it bigger the image becomes blurry That s kinda ok for photos but for pixelart the effect is rather devastating Credit Lea a character from the game Cross Code What is pixelart Pixelart is a way of creating pictures Rather than using brush strokes each individual pixel is carefully colored It s like if you were given just a few hundred square tiles and asked to make a mosaic out of them However thanks to image rendering it s possible to upscale images in a way that highlights their pixelated nature Just a couple lines of code later and pixelart This order matters image rendering crisp edges image rendering pixelated hooray It looks fantastic Except wait just a second Why on earth does the above example CSS specify image rendering twice and with two different values Something s fishy The ParadoxIt turns out there s a bit of a paradox in the browser support for image rendering Waddle on over to Can I Use and we see the following weirdness Chrome and Firefox notate that they support opposite propertiesThat s right Chrome supports pixelated but not crisp edges and Firefox supports crisp edges but not pixelated In order to support both browsers both values had to be specified in the example above utilizing the fact of CSS that if one value is invalid then the other will be used What I learned though is that resolving this paradox is not as simple as just specify both properties because the properties have different semantics That is even though crisp edges and pixelated accomplish the same result they mean different things To resolve this we ll need to embark on a mystical journey through different versions of the specification discussions on implementations andーWell actually I already did all that Instead I ll walk through what I discovered by answering three key questions Why is there a paradox What is the difference between pixelated and crisp edges What CSS should I use for pixelated images What about for images with crisp edges What s with the paradox Without being involved in the dialogue directly it s hard to pinpoint the precise reasons why image rendering has the support it has After delving through documentation discussions and definitions oh my there was one truth underpinning it all The rules for how image rendering should work are not set in stone In fact despite this property having first appeared in just a few months ago in February the images specification changed And furthermore it had seen periodic change over its nine year history In other words image rendering is undergoing active discussion at least some of which has come from feedback from browsers implementing the feature for testing What is the CSS Specification The specification is a set of documents detailing what the features of CSS are how they should be used and how they should be implemented by browsers It s basically the source of truth for what CSS is and will be and has been in constant development since its inception decades ago Feel free to read more about the CSS standardization process As a result the property has only ever been implemented to different degrees with Firefox and Chrome having taken different routes And since the spec is still under discussion no one has a complete implementation In the end Firefox developed crisp edges because it already supported the non standard property moz crisp edges which was meant to be the same thing Chrome had implemented pixelated because at the time in the spec for pixelated was more straightforward Pixelated or Crisp Edges To grasp the pixelated and crisp edges values it s important to understand the purpose of the image rendering property The Semantics of image renderingI m gonna unoriginally paste a direct quote from the CSS spec emphasis added The image rendering property provides a hint to the user agent about what aspects of an image are most important to preserve when the image is scaled When an image is scaled the computer either has to fill in missing details when scaled up or choose what to collapse when scaled down That can be tricky kinda like doubling a cooking recipe but realizing you don t have enough ingredients And so there s no single correct strategy for scaling images leading to a diversity of scaling algorithms meant to do the job Scaling algorithms fill in the gaps That said notice that the spec does not say that the purpose of image rendering is to choose a scaling algorithm Rather the goal is to specify what aspects of an image are most important to preserve For example when we scale an image do we care more about the way colors blend or about keeping the edges sharp Depending on the answer one algorithm may be better than another Though a scaling algorithm will be ultimately chosen the point of image rendering is really to provide the browser additional information so it knows better how to treat the image The Semantics of pixelated and crisp edgesKnowing that image rendering is all about identifying what aspects of the image are important to preserve we can see how pixelated and crisp edges are defined pixelatedThe image is scaled in a way that preserves the pixelated nature of the original as much as possible crisp edgesThe image is scaled in a way that preserves contrast and edges and which does not smooth colors or introduce blur to the image in the process For pixelated images the emphasis is on the pixels but for crispy images the emphasis is on the edges The key point here is that pixels are not the same as edges The pixelated and crisp edges values are not semantically interchangeable We can illustrate the difference by scaling up our pixelart Lea image by a non integral factor say times the original size using algorithms the spec currently mandates What algorithms does the spec mandate For crisp edges the nearest neighbor algorithm is used For pixelated nearest neighbor is used to take the image to the nearest integer scale Afterward a smooth scaling algorithm takes the image the rest of the way The original for referencePixelated introduces blurring but crisp edges distorts the pixelation For pixelated pixels must be square and the only way to preserve that property is to allow the enlarged pixels to overlap The blurring on cell boundaries represent places where pixels are overlapping For crisp edges blurring is not allowed since the contrast between colors is most important Resizing a pixelart image therefore results in cells that are not square which distorts the pixelation aesthetic Resolving the ParadoxEquipped with the history and semantics of image rendering we can resolve the paradox For pixelart it is clear the pixelated value should be used that s what most closely matches the semantics of the art However since Firefox does not yet support pixelated we can fall back onto its currently provided solution crisp edges which will resolve to the nearest neighbor algorithm pixelart image rendering crisp edges image rendering pixelated The fact that pixelated is last is very important If we imagine a future where Firefox has implemented pixelated then we want that value to be applied instead of crisp edges Letting the most semantically appropriate value be last future proofs the solution For maximum compatibility the undead Internet Explorer browser can be supported with ms interpolation mode nearest neighbor And what about images which should have high contrast Chrome and Safari do not support crisp edges but instead support a webkit property called webkit optimize contrast which bears similar semantics Therefore rather than use pixelated it is better to use something that more closely resembles what crisp edges means crispy art image rendering webkit optimize contrast image rendering crisp edges And with that we can celebrate with the final demo ResourcesPixelart is of Lea from the game Cross Code by Radical Fish GamesCan I Use current browser support for image renderingCSS Images Module Level the current Editor s Draft of the specification for CSS imagesChromium Issue Tracking Chrome s supprtMozilla Issue Tracking Firefox s supportPixelated Github Issue Tracking recent updates to the specAnd some extra stuff on my website cut from this article for brevity Timeline of image renderingWhat changed in February 2021-08-07 21:00:45
Apple AppleInsider - Frontpage News Epic Games CEO slams Apple 'government spyware' https://appleinsider.com/articles/21/08/07/epic-games-ceo-slams-apple-government-spyware?utm_medium=rss Epic Games CEO slams Apple x government spyware x Tim Sweeney the chief of Epic Games has attacked Apple over its iCloud Photos and messages child safety initiatives putting forward the idea of it being a way for governments to conduct surveillance On Thursday Apple launched a suite of tools to help protect children online and to reduce the spread of child sexual abuse material CSAM As part of the tools the initiative would introduce features to iMessage Siri and Search as well as a mechanism for scanning iCloud Photos for known CSM imagery As part of the outpouring of criticism against Apple Epic CEO Tim Sweeney took to Twitter once again to complain about Apple s initiative Following an earlier stint on the microblogging service on Friday Sweeney s Saturday proclamations framed the tools as Apple potentially enabling the future surveillance of user data for governments Read more 2021-08-07 21:43:27
海外TECH Engadget China sues Tencent over WeChat's 'youth mode' https://www.engadget.com/china-tencent-wechat-youth-mode-lawsuit-211811555.html?src=rss China sues Tencent over WeChat x s x youth mode x WeChat may be a staple of Chinese digital life but that isn t stopping the country s government from clamping down on the messaging giant s behavior Reutersreports that Beijing prosecutors have sued Tencent over claims We Chat s restricted quot youth mode quot violates laws protecting children The lawsuit didn t explain how the mode allegedly violated the law Youth mode prevents younger users from accessing payments finding nearby friends and playing certain games It s effectively a parental control tool for a quot super app quot that can handle many daily tasks in China Tencent hasn t commented on the lawsuit It recently set stricter limits for young Honor of Kings players capping their play time to just an hour a day on weekdays The suit might be part of a broader crackdown China s state media blasted the game industry and online platforms just this week and officials have previously demanded better protections against online threats to kids The country has also focused much of its recent attention on reining in tech giants like Tencent Alibaba and Didi slapping them with antitrust fines and temporary app bans ーthe suit may be an extension of that effort 2021-08-07 21:18:11
海外科学 NYT > Science Video of Officer’s Collapse After Handling Powder Draws Skepticism https://www.nytimes.com/2021/08/07/us/san-diego-police-overdose-fentanyl.html false 2021-08-07 21:41:00
ニュース BBC News - Home The Papers: Climate catastrophe warning, and winter flu tests https://www.bbc.co.uk/news/blogs-the-papers-58132519 stark 2021-08-07 21:50:22
ニュース BBC News - Home Ian Wright disappointed by 'disgraceful behaviour' of some Leicester fans https://www.bbc.co.uk/sport/football/58132670 Ian Wright disappointed by x disgraceful behaviour x of some Leicester fansIan Wright is really disappointed by the disgraceful behaviour of Leicester fans who abused him during Saturday s Community Shield 2021-08-07 21:36:08
ニュース BBC News - Home Kid Galahad defeats Jazza Dickens to claim vacant IBF world featherweight title https://www.bbc.co.uk/sport/boxing/58130880 Kid Galahad defeats Jazza Dickens to claim vacant IBF world featherweight titleKid Galahad defeats Jazza Dickens in the th round of an all British contest to claim the vacant IBF world featherweight title 2021-08-07 21:47:21
ニュース BBC News - Home De Kock steers Brave to crucial Superchargers win https://www.bbc.co.uk/sport/cricket/58131708 ageas 2021-08-07 21:03:25
北海道 北海道新聞 米国連大使が暗殺未遂を非難 ミャンマー大使標的 https://www.hokkaido-np.co.jp/article/576241/ 国連大使 2021-08-08 06:02:00
ビジネス 東洋経済オンライン 中国「時速600kmリニア」気になる本当の開発状況 車両は完成しているが、まだ高速試験線がない | 海外 | 東洋経済オンライン https://toyokeizai.net/articles/-/446247?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2021-08-08 06:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)