网页背景平铺

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)

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的图像。 您可以使用任何图像,但是某些图像作为重复的背景会比其他图像更好。

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用户,则可以安装与我们将要使用的偏移过滤器类似的偏移过滤器,并与我们一起关注。

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

使用此“偏移”滤波器可以立即完成“艰巨”的工作。 通过导航到“过滤器”>“其他”>“偏移”来找到它,如图所示。

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)

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).

这是一种(有点粗糙)的方法,对于该图像而言效果并不理想,但可能对您有用。 我们将通过复制背景来创建模糊层(右键单击>复制层)。

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

选择此层后,通过导航到滤镜>模糊>高斯模糊来执行高斯模糊。 使用对您有意义的任何设置。

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

通过在图层面板中的图标上按+鼠标左键创建涂黑的图层蒙版。

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.

然后只需使用白色的软笔刷作为前景色来柔化平铺非常明显的边缘。 对于某些照片来说,这可能效果很好,但我们的效果并不理想,因此我们将尝试第二种技术。

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)

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”(斑点修复刷)可以快速去除瓷砖上的硬而明显的线条,并为您带来更加无缝的外观。 选择“斑点修复刷”时,请确保使用软边刷。

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)

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/

网页背景平铺

网页背景平铺_在大约十秒钟内为网页创建无缝平铺背景相关推荐

  1. Illustrator 教程:如何在 Illustrator 中创建无缝平铺图案?

    欢迎观看illustrator教程,小编带大家学习 illustrator 的基本工具和使用技巧,了解如何在 illustrator 中创建图案并将图案应用于多种形状,同时调整图案的颜色和形状. 在本 ...

  2. 初学者Photoshop:十秒钟内的黑白和红色照片效果

    It's a classic effect: the black and white photo with the stark, isolated red. Here's how to knock o ...

  3. 安卓手机能提取当前页面的链接吗_如何获取一个app内的网页地址?

    最近有一个合作商,所有的操作只能用手机登录App操作,特别是打字文本编译,比电脑累太多了,为了发扬如何偷懒,决定把App内网页转到PC上,Let's go. 查了一下知乎上都没有理想的解答,我动手写一 ...

  4. javascript创建类_如何在10分钟内使用JavaScript创建费用管理器

    javascript创建类 by Per Harald Borgen 通过Per Harald Borgen 如何在10分钟内使用JavaScript创建费用管理器 (How to create an ...

  5. 构建azure对话机器人_如何在5分钟内使用Azure创建聊天机器人

    构建azure对话机器人 介绍 (Introduction) As we enter an era of artificial intelligence and serverless computin ...

  6. html静态网页制作的博客,[推荐]初学制作静态网页HTML推荐标准_

    [推荐]初学制作静态网页HTML推荐标准_ (2012-05-19 10:46:32) 标签: 网页 制作 杂谈 a双 定义一个链接name=text 本网页内目标名称(书签),可为数字或文本href ...

  7. 微信小程序与内嵌网页交互实现支付功能

    上个月,小程序开放了新功能,支持内嵌网页,所以我就开始了小程序内嵌网页之路,之前我只是个小安卓. 内嵌网页中可使用JSSDK 1.3.0提供的接口,可坑就来了,居然不支持支付接口的调用,经过一番研究, ...

  8. 十年前的32位笔记本使用平铺桌面管理工具i3跑得飞快

    十年前的32位笔记本使用平铺桌面管理工具i3跑得飞快 旧笔记本 家里有一台配置很低的笔记本,买了已经有将近十年了. cpu还是32位的. 系统目前安装的是manjaro32,目前这个系统已经不支持更新 ...

  9. 前端背景图放置_前端开发关于网页背景图片的缩放自适应及组合形成背景图的问题...

    前端游戏开发贴吧 游戏前端开发 游戏开发流程 策划美术前端后端 昨天在切图时遇到如下两个问题: 1.需要背景图片无论浏览器大小如何缩放,背景图片始终宽度百分百显示. 2.需要将给出的一张背景图片和一张 ...

最新文章

  1. jpg在线合并jpg_JPG如何运作
  2. 快速获取Android应用包名和Activity名
  3. PyTorch view() 函数
  4. ST_Curve --- 一个专业的曲线绘制控件
  5. SpringBoot+MyBatis搭建迷你小程序
  6. Linux 网络编程八(epoll应用--大并发处理)
  7. git是一种分布式代码管理工具,git通过树的形式记录文件的更改历史,比如: base'--base--A--A' ^ | --- B--B' 小米工程师常常需要寻找两个分支最近的分割点,即b...
  8. pycharm运行模型时怎么设置权重?_使用AMP和Tensor Cores得到更快速,更节省内存的PyTorch模型...
  9. java ee ssh三大框架知识点_详解JAVAEE——SSH三大框架整合(spring+struts2+hibernate)...
  10. mysql测试事务_MySQL事务测试
  11. 林淮川孙玄:分布式锁选型背后的架构设计思维【附源码】
  12. 今日头条推广视频教程自媒体推广短视频教程今日头条引流小白入门视频解析下载支持今日头条快手抖音火...
  13. 为什么不同文化中都会发现圆形房屋
  14. 信呼协同办公系统-存储型XSS漏洞
  15. 【大神】用ESP32自制WiFi版高清语音电话产品WiPhone,WiPhone电话应用电话小车
  16. 微信小程序引用外部文件找不到文件报错问题
  17. Jenkins 设置镜像_在k8s上安装Jenkins及常见问题
  18. 一加Ace竞速版,手游党的开心搭档
  19. 数据库CAST()函数,格式(CAST AS decimal)
  20. Sublime Text 3 简体中文汉化包使用方法

热门文章

  1. click vue 重复调用_VUE防止多次点击,重复请求
  2. Http协议(7)—Http缓存
  3. 钮扣电池电压电量_纽扣厂
  4. 制作五彩纸屑转场动效_何时以及如何将五彩纸屑添加到产品UI
  5. (字节/华为/美团)前端面经记录冷冷清清的金三银四
  6. 使用EHCache需要注意的几个问题(转)
  7. 关于file的部分简单命令
  8. 深度优先搜索——八皇后问题
  9. Win7下JDK环境变量的设置
  10. Entity Framework在Asp.net MVC中的实现One Context Per Request(附源码)