網頁背景平鋪_在大約十秒鐘內為網頁創建無縫平鋪背景

網頁背景平鋪

網頁背景平鋪

image

Creating a background image for your webpage (or desktop background) isn’t challenging at all. In fact, even a newbie Photoshop user can bash one out in about ten seconds. Here’s the simplest of simple methods with surprising, great results.

為網頁(或桌面背景)創建背景圖片完全沒有挑戰。 實際上,即使是新手Photoshop用戶也可以在大約十秒鐘之內將其撲滅。 這是最簡單的簡單方法,具有令人驚訝的出色效果。

偏移圖像 (Offsetting the Image)

sshot-716

Find an appropriate image, like this one from Flickr. You can use any image at all, but some images will work better than others as a repeating background.

找到合適的圖像,例如Flickr的圖像。 您可以使用任何圖像,但是某些圖像作為重復的背景會比其他圖像更好。

sshot-717

Break out Photoshop. If you’re a GIMP user, you can install the Offset filter similar to the one we’re going to be using and follow right along with us.

突破Photoshop。 如果您是GIMP用戶,則可以安裝與我們將要使用的偏移過濾器類似的偏移過濾器,并與我們一起關注。

sshot-717

The “hard” work can be done in an instant with this “offset” filter. Find it by navigating to Filter > Other > Offset, as shown.

使用此“偏移”濾波器可以立即完成“艱巨”的工作。 通過導航到“過濾器”>“其他”>“偏移”來找到它,如圖所示。

sshot-718

If you’re using an image with only a background layer, the offset filter will slide your image around, wrapping the image around in a tiling motion. Make sure “Wrap Around” is selected in “Undefined Areas” to tile the image properly. This is most of the work already, and we’ve barely begun. Let’s see how we can make this repeating photograph a little bit more seamless.

如果您使用的圖像只有背景圖層,則偏移濾鏡會滑動您的圖像,并以平鋪運動的方式環繞圖像。 確保在“未定義區域”中選擇“環繞”以正確平鋪圖像。 這是大部分工作,而我們才剛剛開始。 讓我們看看如何使這張重復的照片更加無縫。

無縫邊緣模糊 (Seamless Edges With A Blur)

sshot-719

Here’s a (somewhat crude) method that doesn’t really work well for this image, but may work for yours. We’ll create a blur layer by duplicating our background (Right Click > Duplicate Layer).

這是一種(有點粗糙)的方法,對于該圖像而言效果并不理想,但可能對您有用。 我們將通過復制背景來創建模糊層(右鍵單擊>復制層)。

sshot-720

With this layer selected, perform a Gaussian Blur by navigating to Filter > Blur > Gaussian Blur. Use any setting that makes sense to you.

選擇此層后,通過導航到濾鏡>模糊>高斯模糊來執行高斯模糊。 使用對您有意義的任何設置。

sshot-722
sshot-723
alt
mask

Create a blacked out layer mask by pressing + Left Mouse Button on the icon in the layers panel.

通過在圖層面板中的圖標上按+鼠標左鍵創建涂黑的圖層蒙版。

sshot-724

Then simply use a soft brush with white as a foreground color to soften the edges where the tiling is very obvious. This might work very well for some photos, but ours is not an amazing result, so we’ll try a second technique.

然后只需使用白色的軟筆刷作為前景色來柔化平鋪非常明顯的邊緣。 對于某些照片來說,這可能效果很好,但我們的效果并不理想,因此我們將嘗試第二種技術。

sshot-726

Alternatively, you can also find the “Blur Tool” in the toolbox. It can give you a very similar result to this one, selectively blurring parts of the image.

或者,您也可以在工具箱中找到“模糊工具”。 它可以為您提供與此非常相似的結果,有選擇地使圖像的某些部分模糊。

內容感知混合效果驚人 (Content Aware Blending For AMAZING Results)

sshot-728

In situations like this, content aware tools look like they’re working miracles. The “Spot Healing Brush” can make quick work out of removing the hard, obvious lines in the tiling and give you a much more seamless look. When you select the Spot Healing Brush, make sure you use a soft edged brush.

在這種情況下,內容感知工具看起來像是在創造奇跡。 “ Spot Healing Brush”(斑點修復刷)可以快速去除瓷磚上的硬而明顯的線條,并為您帶來更加無縫的外觀。 選擇“斑點修復刷”時,請確保使用軟邊刷。

sshot-727

After four quick brush strokes, the image is startlingly convincing. It’s hard to believe it took so little work.

經過四個快速的筆觸,圖像令人吃驚。 很難相信它花了這么少的工作。

在瀏覽器中測試 (Testing It In a Browser)

sshot-729

Save your image to your desktop as repeat.jpg, then download this file to your desktop and open it in your browser of choice. This will load whatever you created as a repeating background, just as you would see it on a remote webpage.?If you know HTML (many of you will, I’m sure) you can edit this file in a notepad to use a different filename, if you prefer.

將圖像作為repeat.jpg保存到桌面,然后將該文件下載到桌面并在您選擇的瀏覽器中打開它。 這將加載您作為重復背景創建的內容,就像在遠程網頁上看到的一樣。 如果您知道HTML(肯定會很多),則可以根據需要在記事本中編輯此文件以使用其他文件名。



Thoughts or criticism on our method today? Got some tricks that work even better than this? Tell us about it in the comments, or simply email us your questions at ericgoodnight@howtogeek.com, and we may feature them in a future How To Geek graphics article.

對我們今天的方法有想法或批評嗎? 有一些比這更好的技巧嗎? 在評論中告訴我們,或通過ericgoodnight@howtogeek.com將您的問題通過電子郵件發送給我們,我們可能會在以后的How To Geek圖形文章中介紹它們。

Image Credits: Wall of Books by benuski, Creative Commons.

圖片來源: benuski的書籍,知識共享。

翻譯自: https://www.howtogeek.com/112320/make-a-seamless-tiling-background-for-webpages-in-about-ten-seconds/

網頁背景平鋪

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280456.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280456.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280456.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

9月11日學習內容整理:正則表達式,re模塊

一、正則表達式:正則是很大的一個知識點,不會僅僅是下面這些東西 1、概念:正則表達式就是一種對字符串匹配的規則,注意是只對字符串,正則表達式和python沒啥關系, 2、表達式: (1&…

rest_framework02:修改數據/校驗鉤子/read_only和write_only

修改數據 1.傳入數據,選中data,以及修改data book_ser BookSerializer(instancebook, datarequest.data) 2.校驗,通過則保存。 if book_ser.is_valid(): # 返回True 表示驗證通過book_ser.save() # 不是book.save() rest_framework…

MongoDB的安裝與使用

MongoDB是一款NoSql數據庫。NoSql數據庫叫非關系型數據庫,NoSql的全名Not only sql。是為了解決高并發、高可用、高可擴展,以及大數據存儲等一系列問題而產生的數據庫解決方案。NoSql,它不能替代關系型數據庫,只能作為關系型數據庫…

linux 基準測試_如何對Linux系統進行基準測試:3個開源基準測試工具

linux 基準測試Linux’s command-line utilities can do anything, including perform benchmarks – but using a dedicated benchmarking program is a simpler and more foolproof process. These utilities allow you to perform reproducible tests across different syst…

.NET 7 新增的 IParsable 接口介紹

.NET 7 是一個新版本的 .NET,它新增了一個名為 IParsable 的接口。這個接口可以幫助開發人員更容易地在代碼中解析字符串。IParsable 接口包含兩個方法:Parse 和 TryParse。Parse 方法用于將一個字符串解析為指定類型的值。如果解析失敗,則會…

CentOS 7安裝nginx+php+mysql環境

0x01 安裝php 1、首先得安裝第三方軟件庫 yum install epel-release 復制代碼2、安裝依賴包 yum install gcc gcc-c glibc libmcrypt-devel mhash-devel libxslt-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-de…

spring+springMvc+struts的SSH框架整合

1.建立一個web項目 2.導入SSH框架所需jar包 3.配置web.xml文件 <?xml version"1.0" encoding"UTF-8"?> <web-app xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance" xmlns"http://java.sun.com/xml/ns/javaee" xsi:sc…

聽說這個語言認知服務又出新功能了?

點擊上方藍字關注我們&#xff08;本文閱讀時間&#xff1a;7分鐘)語言是人類智能發展的基石。鑒于語言擁有普遍性&#xff0c;幾乎沒有特定的技術或 AI 技術得以顛覆整個社會。微軟的使命是賦能地球上的每個人和每個組織&#xff0c;幫助他們取得更多成就。立足于該使命&#…

強大的XML

2018-04-23 20:29:26 XML&#xff1a;Extensible Markup Language&#xff0c;也就是可擴展標記語言。XML和HTML格式是古老的標記通用語言SGML的衍生語言。 XML文件是可以用來作為配置文件的&#xff0c;相比于其他配置文件的規范&#xff0c;XML的好處在于通過自定義的標記&am…

rest_framework03:查詢所有/新增數據/刪除一個數據/封裝Response/序列化與反序列化

查詢所有 1.創建新clase和url&#xff0c;避免與查詢一個功能邏輯混亂。 2.增加manyTrue&#xff0c; book_serBookSerializer(books,manyTrue) urls.py: path(books/,views.BooksView.as_view()) views.py class BooksView(APIView):def get(self,request):response_msg …

如何對DevOps數據庫進行源代碼控制

提綱&#xff1a; 包括索引在內的數據庫模式需要進行源代碼控制諸如查詢表這類用于控制業務邏輯的數據需要進行源代碼控制開發人員需要一種能夠便捷地創建本地數據庫的方法共享數據庫的更新只能通過構建服務器完成 健壯的DevOps環境需要對系統的每個組件進行持續集成。但是&…

自定義異常最佳實踐_播放,自定義和組織媒體的最佳文章

自定義異常最佳實踐Computers today are used for much more than generating documents, writing and receiving email, and surfing the web. We also use them to listen to music, watch movies and TV shows, and to transfer media to and from mobile devices. 如今&…

CSS中的路徑裁剪樣式clip-path

前面的話 CSS借鑒了SVG裁剪的概念&#xff0c;設置了clip-path樣式&#xff0c;本文將詳細介紹路徑裁剪clip-path 概述 clip-path屬性可以防止部分元素通過定義的剪切區域來顯示&#xff0c;僅通過顯示的特殊區域。剪切區域是被URL定義的路徑代替行內或者外部svg&#xff0c;或…

socket編程學習筆記

socket編程&#xff1a; 1、網絡基礎知識 兩臺計算機通過網絡進行通信&#xff0c;首先兩臺計算機要有唯一的標識&#xff0c;即唯一的IP地址。其次他們要有共同的語言用來交流即協議。再者&#xff0c;每套主機要有相應的端口號。  TCP/IP協議&#xff1a;   --TCP/IP協議是…

rest_framework04:ModelSerializer/Serializer高級用法

ModelSerializer 1.減小序列化類代碼 2.不需要重寫update&#xff0c;create ser.py class BookModelSerializer(serializers.ModelSerializer):class Meta:modelBookfields__all__ #序列化全部字段# fields(name,price) # 序列化指定字段# exclude(name,) # 與fields 不能…

配置本地及網絡yum源(詳細步驟)

我們以centos6為范例演示 1、[rootCentos6 ~]# cd /etc/yum.repos.d/ [rootCentos6 yum.repos.d]# ls CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repoCentOS-Debuginfo.repo CentOS-Media.repo先羅列出相關文件 2、[rootCentos6 yum.repos.d]# vim CentOS-Base.rep…

macos mojave_如何修復macOS Mojave上的模糊字體(使用亞像素抗鋸齒)

macos mojaveApple’s macOS Mojave disables subpixel antialiasing, also known as font smoothing, by default. On a MacBook Air or a desktop Mac hooked up to a non-Retina display, upgrading will make your fonts look worse. 蘋果的macOS Mojave默認情況下禁用子像…

為什么我要寫博客

原因在這啦 一、我覺得分享是一種精神&#xff0c;分享是我的樂趣所在&#xff0c;不是說我覺得我講得一定是對的&#xff0c;我講得可能很多是不對的&#xff0c;但是我希望我講的東西是我人生的體驗和思考&#xff0c;是給很多人反思&#xff0c;也許給你一秒鐘、半秒鐘&…

一個變量命名神器:支持中文轉變量名

變量命名的規范&#xff0c;對于我們編程&#xff0c;大家都知道是非常重要的&#xff0c;上次給大家推薦過一個命名輔助工具《程序員還在為變量取名苦惱&#xff0c;那是因為你不知道&#xff0c;這個變量命名神器》&#xff0c;但大家一致反饋存在2個問題&#xff1a;1、網速…

rest_framework05:GenericAPIView用法/擴展類5個/子類9個/ViewSetMixin 自定義方法名字

GenericAPIView 1.視圖層類使用GenericAPIView繼承&#xff0c;能簡化類里的方法code。 2.簡化后的方法code格式基本通用&#xff0c;簡單修改即可應用到其他類。 一、class開始加入 queryset Book.objectsserializer_class BookModelSerializer 二、方法里獲取對象 a.查…