bhaskar4n / watermarker Goto Github PK
View Code? Open in Web Editor NEWwater marker for images.
License: The Unlicense
water marker for images.
License: The Unlicense
Hi Bhaskar,
Thank you for this python script.
While I was trying to execute this; I am getting Font related error. Please see below whole python shell log:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
========= RESTART: C:\Vivek_Personal\watermarker-master\watermark.py =========
1. Text only
2. Logo only
3. Both text and logo
choose (1 or 2 or 3) : 1
enter water_marker text: papertreasure
enter the text size(default=72): 50
Transparent level(default=100): 50
images/13891885_942077929272343_7101195289443155621_n.jpg
(720, 960)
Traceback (most recent call last):
File "C:\Vivek_Personal\watermarker-master\watermark.py", line 53, in <module>
font = ImageFont.truetype("Arial.ttf",txtsize)
File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 238, in truetype
return FreeTypeFont(font, size, index, encoding)
File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 127, in __init__
self.font = core.getfont(font, size, index, encoding)
IOError: cannot open resource
>>>
However, I was able to watermark logo successfully.
Kindly help here.
regards,
Vivek Agarwal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.