Coder Social home page Coder Social logo

xdulogo's Introduction

目录

项目名称

xdulogo-Xidian University Logo

西安电子科技大学校徽校

素材来源

素材下载自西安电子科技大学校徽校名(JPG版本)-西安电子科技大学—党委宣传网

根据VIS-西安电子科技大学新闻网中关于红蓝两色的要求对颜色进行了修正,确保每张图片中的颜色仅包含西电红、西电蓝、黑色、白色四种颜色之中的几种。另外已使用脚本对每一个像素的元素进行了检查,确保颜色的纯正。

成果展示

西电新标志1

白色-透明

西电新标志1-白色-透明

红色-不透明

西电新标志1-红色-不透明

红色-透明

西电新标志1-红色-透明

蓝色-不透明

西电新标志1-蓝色-不透明

蓝色-透明

西电新标志1-蓝色-透明

西电新标志2

白色-透明

西电新标志2-白色-透明

红色-黑色-不透明

西电新标志2-红色-黑色-不透明

红色-黑色-透明

西电新标志2-红色-黑色-透明

蓝色-黑色-不透明

西电新标志2-蓝色-黑色-不透明

蓝色-黑色-透明

西电新标志2-蓝色-黑色-透明

西电新标志3

白色-透明

西电新标志3-白色-透明

红色-黑色-不透明

西电新标志3-红色-黑色-不透明

红色-黑色-透明

西电新标志3-红色-黑色-透明

蓝色-黑色-不透明

西电新标志3-蓝色-黑色-不透明

蓝色-黑色-透明

西电新标志3-蓝色-黑色-透明

西电新标志4

白色-透明

西电新标志4-白色-透明

黑色-不透明

西电新标志4-黑色-不透明

黑色-透明

西电新标志4-黑色-透明

转换代码

需要先下载安装ImageMagick,以下代码仅在Windows平台测试,不过应该可以移除注释运行在其他平台上。

rem 原始素材
copy org\西电新标志1.jpg .
copy org\西电新标志2.jpg .
copy org\西电新标志3.jpg .
copy org\西电新标志4.jpg .
rem 校正红色和黑色
rem 大约不是白色的填充为西电红 接着不是西电红的全部填充为白色
convert 西电新标志1.jpg -fuzz 30% -fill "#AF2125" +opaque white -fill white +opaque "#AF2125" -define png:exclude-chunks=date,time 西电新标志1-红色-不透明.png
rem 先处理左区域 再处理右区域
rem 左区域大约不是白色的填充为西电红 接着不是西电红的全部填充为白色
convert 西电新标志2.jpg -region 750x800+0+0 -fuzz 30% -fill "#AF2125" +opaque white -fill white +opaque "#AF2125" 西电新标志2-红色-黑色-不透明-临时.png
rem 右区域大约不是白色的填充为黑色 接着不是黑色的全部填充为白色
convert 西电新标志2-红色-黑色-不透明-临时.png -region 1800x800+740+0 -fuzz 30% -fill black +opaque white -fill white +opaque black -define png:exclude-chunks=date,time 西电新标志2-红色-黑色-不透明.png
del 西电新标志2-红色-黑色-不透明-临时.png
rem 先处理上区域 再处理下区域
rem 上区域大约不是白色的填充为西电红 接着不是西电红的全部填充为白色
convert 西电新标志3.jpg -region 1800x1050+0+0 -fuzz 30% -fill "#AF2125" +opaque white -fill white +opaque "#AF2125" 西电新标志3-红色-黑色-不透明-临时.png
rem 下区域大约不是白色的填充为黑色 接着不是黑色的全部填充为白色
convert 西电新标志3-红色-黑色-不透明-临时.png -region 1800x800+0+1000 -fuzz 30% -fill black +opaque white -fill white +opaque black -define png:exclude-chunks=date,time 西电新标志3-红色-黑色-不透明.png
del 西电新标志3-红色-黑色-不透明-临时.png
rem 大约不是白色的填充为黑色 接着不是黑色的全部填充为白色
convert 西电新标志4.jpg -fuzz 30% -fill black +opaque white -fill white +opaque black -define png:exclude-chunks=date,time 西电新标志4-黑色-不透明.png
rem 移除白底
convert 西电新标志1-红色-不透明.png -fuzz 30% -transparent white -define png:exclude-chunks=date,time 西电新标志1-红色-透明.png
convert 西电新标志2-红色-黑色-不透明.png -fuzz 30% -transparent white -define png:exclude-chunks=date,time 西电新标志2-红色-黑色-透明.png
convert 西电新标志3-红色-黑色-不透明.png -fuzz 30% -transparent white -define png:exclude-chunks=date,time 西电新标志3-红色-黑色-透明.png
convert 西电新标志4-黑色-不透明.png -fuzz 30% -transparent white -define png:exclude-chunks=date,time 西电新标志4-黑色-透明.png
rem 替换为蓝色
convert 西电新标志1-红色-不透明.png -fill "#004182" -opaque "#AF2125" -define png:exclude-chunks=date,time 西电新标志1-蓝色-不透明.png
convert 西电新标志2-红色-黑色-不透明.png -fill "#004182" -opaque "#AF2125" -define png:exclude-chunks=date,time 西电新标志2-蓝色-黑色-不透明.png
convert 西电新标志3-红色-黑色-不透明.png -fill "#004182" -opaque "#AF2125" -define png:exclude-chunks=date,time 西电新标志3-蓝色-黑色-不透明.png
rem 移除白底
convert 西电新标志1-蓝色-不透明.png -transparent white -define png:exclude-chunks=date,time 西电新标志1-蓝色-透明.png
convert 西电新标志2-蓝色-黑色-不透明.png -transparent white -define png:exclude-chunks=date,time 西电新标志2-蓝色-黑色-透明.png
convert 西电新标志3-蓝色-黑色-不透明.png -transparent white -define png:exclude-chunks=date,time 西电新标志3-蓝色-黑色-透明.png
rem 生成白色透明底素材
convert 西电新标志1-红色-透明.png -fill white -opaque "#AF2125" -fill white -opaque black -define png:exclude-chunks=date,time 西电新标志1-白色-透明.png
convert 西电新标志2-红色-黑色-透明.png -fill white -opaque "#AF2125" -fill white -opaque black -define png:exclude-chunks=date,time 西电新标志2-白色-透明.png
convert 西电新标志3-红色-黑色-透明.png -fill white -opaque "#AF2125" -fill white -opaque black -define png:exclude-chunks=date,time 西电新标志3-白色-透明.png
convert 西电新标志4-黑色-透明.png -fill white -opaque black -define png:exclude-chunks=date,time 西电新标志4-白色-透明.png
rem 移除原始素材
del 西电新标志1.jpg
del 西电新标志2.jpg
del 西电新标志3.jpg
del 西电新标志4.jpg

作者

xdulogo's People

Contributors

note286 avatar

Forkers

bruce-csy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.