Table of Contents
回复内容:
Home Backend Development PHP Tutorial 空间里看到的png图片,点开大图会成变成另一张图。怎么做的?

空间里看到的png图片,点开大图会成变成另一张图。怎么做的?

Jun 17, 2016 am 08:31 AM
gif png

今天在扣扣空间里看到一张图,小图是一个男孩躺在凌乱的房间里,点开之后就变成了男孩躺在星河里的图片,本来以为是gif,存了一下发现是png格式,这是怎么回事?求大神解释

回复内容:

今天正好转了这个说说。图的作者还是挺会玩的,不过道理很简单。
空间里看到的png图片,点开大图会成变成另一张图。怎么做的?

已经说了这张图是png,这个格式的图片是可以没有背景色的,或者说背景色可以透明。这张图前景色是白色的星星和人。所以你打开大图看见星空并不是图变了,而是看大图时候背景是黑色的,加上前景色就变成了星空。
屋子的线条也只不过是黑色65%左右透明度,所以点开大图之后有黑色的背景而看不见屋子。
作者只是利用图片格式做了个小把戏而已。

前面的答案已经解释过了,我就是来放个图~ PNG是可以做出透明色的。

当小图的时候,一般图片背景是白色(灰白色),而打开时候是黑色背景。

所以我画一个灰白色的圆,一个黑色的正方,然后其他部分都是透明。然后你小图的时候灰白色的圆和透明色还是灰白色。所以就看到了正方形。打开以后背景变成了黑色,和黑色的方混在了一起,变成了灰白色的圆。

这个复杂化了加强接近的颜色,加上灰白色和黑色的半透明就变成一幅复杂的画了。


手机打得,图回去有空上。 我上图两张让你开开眼~ 空间里看到的png图片,点开大图会成变成另一张图。怎么做的?
空间里看到的png图片,点开大图会成变成另一张图。怎么做的?

保存后你发给别人试试
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to convert PNG to JPG on Windows 11 How to convert PNG to JPG on Windows 11 May 12, 2023 pm 03:55 PM

How to Convert PNG to JPG on Windows 11 On Windows 10 and 11, you can use Microsoft's built-in Paint app to quickly convert image files. To convert a PNG image to JPG on Windows 11, use the following steps: Open File Explorer and navigate to the PNG image you want to convert. Right-click the image and select Open With > Draw from the menu. Your photo or image opens in the Paint app. Note the file size at the bottom of the screen. To convert a file from PNG to JPG, click File and select Save As > JPEG Image from the menu. When the file resource

How to rename the extension of all files within a folder, including subfolders How to rename the extension of all files within a folder, including subfolders Apr 14, 2023 pm 12:22 PM

Suppose you need to rename the extension of a file from one extension to another, say jpg to png. It's easy, of course! But what if you have multiple files whose extensions need to be changed? Or worse, what if these multiple files are also located in multiple folders and subfolders, within a single folder? Well, for a normal person, this can be a nightmare. But for a geek, absolutely not. The question now is, are you a geek? Well, with the help of Geek Page, you definitely are! In this article, we explain how to easily rename the extension of all files within a folder, including subfolders of your choice, from one extension to another through a batch script method. Notice:

What format is png? What format is png? Dec 10, 2020 pm 04:16 PM

png is a bitmap format that uses a lossless compression algorithm. The PNG format has three forms: 8-bit, 24-bit, and 32-bit. The 8-bit PNG supports two different transparent forms. The 24-bit PNG does not support transparency. The 32-bit PNG adds an 8-bit transparent channel to the 24-bit. Therefore, Can display 256 levels of transparency.

What is the format of png files? What is the format of png files? Feb 19, 2024 pm 08:32 PM

PNG is a common image file format, whose full name is "Portable Network Graphics". It is a lossless compression format designed to replace the JPEG and GIF formats commonly used in the past. The PNG format was created in 1995 by graphic designer Thomas Boutell and grew in popularity over the following years. The PNG format is characterized by supporting high-quality image compression while retaining image details and color information. Comparable to JPEG format

Which one is clearer, jpeg or png? Which one is clearer, jpeg or png? Mar 17, 2023 am 10:43 AM

Compared with jpeg and png, the png format is clearer; because the png format is a lossless format, while the jpeg format is lossy compression, which will reduce the quality of the original image data; therefore, if you use files produced by drawing software, save When you choose to save the png format, it will be clearer than the jpeg format.

How to make pictures into png How to make pictures into png Jan 19, 2021 am 09:14 AM

How to make a picture into a png: 1. Open the PS software; 2. Find the picture that needs to be processed and import it into the software; 3. Adjust the background color of the picture to white; 4. Select the "Magic Eraser" tool and click The background area on the picture that needs to be made transparent; 5. Click "File" - "Save As" in the menu bar, select "png" in the save format in the pop-up window, and export the picture in png format.

Is the vector image png or jpg? Is the vector image png or jpg? Feb 22, 2024 pm 05:39 PM

Is the vector image png or jpg? In the field of image processing, we often hear the terms vector graphics and bitmaps. They represent two different image representation methods, with their own characteristics and uses. Among these two representation methods, generally speaking, vector images are often saved in SVG, AI, EPS and other file formats, while bitmaps are often saved in png, jpg, bmp and other formats. So to answer the question in the title, vector images can be png or jpg, but they can also be in other formats. The difference between vector graphics and bitmaps is their

What format is png file? What format is png file? Feb 21, 2024 pm 09:30 PM

PNG is a common image file format. It is a lossless compression format, which means that it does not lose image quality. PNG stands for Portable Network Graphics. The PNG file format was originally created by a group of developers in 1996 and was intended to replace some limited and inefficient file formats such as GIF. The PNG file format is based on a lossless compression algorithm and utilizes indexes, palettes, and grayscale images to store image data. Compared to other image formats, PN

See all articles