Giter VIP home page Giter VIP logo

macdesktopname's Introduction

图片文字水印自动生成

背景

mac多桌面很赞 美中不足,不能命名桌面名称,只能桌面1、桌面2

解决

在图片上写文字,并设置为各个桌面背景,可以更好区分

安装

  • node-version: 8

  • git clone [email protected]:gaozhenze/MacDesktopName.git

  • brew install pkg-config cairo pango libpng jpeg giflib

  • npm install

  • vim ~/.bash_profile 添加一行 alias desktop_img="node /...path/MacDesktopName/index.js '[/imgfilepath/test/test.jpg]' '[/distpath/test]' "

  • alias desktop_img="node /Users/gaozhenze/Github/MacDesktopName/index.js '/System/Library/Desktop Pictures/Yosemite 3.jpg' '/Users/gaozhenze/Documents/RIverOthers/screenimgs'"

  • source ~/.bash_profile

使用

  • desktop_img '桌面一'
  • 更换桌面背景图片为生成的文件

备注:使用node-canvas

在图片上画图使用 node-canvas 实现 需要预装一些组件,node-canvas才能使用 mac的:brew install pkg-config cairo pango libpng jpeg giflib 详见github: https://github.com/Automattic/node-canvas

macdesktopname's People

Contributors

gaozhenze avatar

Stargazers

yoyo avatar

Watchers

 avatar

Forkers

larrylib

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.