03-02-2010, 02:53 AM | #1 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Watermark for EPUB
I would like to create watermarks for my EPUB files. Of course, I can do this manually but are there any programs to ease my job? For example, would be nice to add some small watermark after every chapter and if the book contains several chapters, it's quite toilsome to do it manually. Watermark could be just a short piece of text or a small image.
I would also like to know if you have any good suggestions to do watermarks and what do you think about them. Personally I don't mind about watermarks if they are nice and clean or invisible. Last edited by Chang; 03-02-2010 at 02:55 AM. |
03-02-2010, 07:32 AM | #2 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
I assume by 'watermark' you mean adding something that will uniquely identify the version of the ePub that you distribute. What purpose do you want the watermark to serve? If you're preparing several different versions of an ePub to send out to different people, then the most obvious route is simply to change the <dc:identifier> value in the content.opf file. Obviously anyone can edit the ePub and change that, but they could change any code you add to the text as well.
If you want to obfuscate the watermark so that it can't be easily detected or changed, then that's a different issue, but is quite possible with some technical skill. Most ePubs contain one or more images and there are several ways of watermarking a jpeg. |
Advert | |
|
03-02-2010, 08:29 AM | #3 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Thank you for your answer charleski!
I'm interested in both kind of watermarks, visible and invisible. Adding metadata or some "meaningless code" e.g. empty div elements or comments in the XHTML I count as visible watermarks because those can be found quite easily and therefore deleted easily as well. I'm also looking for a simple but effective way to add invisible watermark. I guess this is a secret for many people and they don't want to share their solutions and algorithms which is understandable. I'll google more about adding watermark for jpeg images, thanks for the idea! I don't like DRM and that's why I'm trying to find other solutions to fight against piracy. With invisible watermark I could at least find out "where's the leak". |
03-02-2010, 01:33 PM | #4 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
03-02-2010, 02:15 PM | #5 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
... and you can add something like a PGP signature of the whole book, created with your private key.
|
Advert | |
|
03-02-2010, 02:20 PM | #6 |
creator of calibre
Posts: 44,337
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not possible to make a watermark that cannot be deleted easily. The best you can do is make a watermark that cannot be deleted easily by technically challenged users, and even that really only relies on the DMCA.
|
03-03-2010, 02:26 PM | #7 |
Member
Posts: 13
Karma: 44
Join Date: Feb 2010
Location: Indianapolis
Device: Sony PRS-600
|
While this wouldn't be a visible watermark, if you wanted to be able to determine who the source of a violation was, you could always drop an extra file with ownership data into the content directory before you zip the files up.
Then, if you find someone has shared your file on a torrent or other warez site, you could unpack it and find out who the original file was vended to. |
03-04-2010, 04:15 AM | #8 | |||
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Thank you for your helpful answers and comments!
Quote:
Quote:
Quote:
It's a good idea but extra files are easily detected and easily deleted as well. Last edited by Chang; 03-04-2010 at 04:22 AM. |
|||
03-05-2010, 06:47 AM | #9 | |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Quote:
This might go a bit off-topic but... Problem is that when I sign my epub file, it's not anymore an epub file but a GPG file. Would be nice if it would still remain as an epub file so it could be read normally. I don't know have you used digital signatures for your e-books but for me it seems that when signing a file, it changes the file format until it's opened again with correct key. I found this good tutorial http://www.glump.net/howto/gpg_intro#signing_files and it says: "Text messages can have signatures appended to them without disrupting the contents of the message too much, but binary files such as Microsoft Word documents and Zip archives can't have arbitrary data attached to them. To sign binary files, it is costumary to have GPG create a separate signature file." If I want to sign my epub file, I would have to create separated file which contains my signature. Is there a way to sign my epub file without the file format being changed or creating a separated signature file? |
|
03-05-2010, 07:27 AM | #10 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Signing the file is virtually the opposite of watermarking it. It allows other people to verify that the file has come from you without any third-party changing it.
|
03-05-2010, 08:32 AM | #11 | |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
As charleski says, the concept is somehow opposite to normal watermarking. It depends on what your intent is. If you want to mark every epub file differently so you can eventually detect which copy was leaked to the darknet, I would recommend multiple "watermarks": Some plain-text identification visible in the book, a <meta> tag in the OPF, comments metadata in pictures (the cover picture or some logo would be good candidates), and maybe something else (comments in HTML, CSS, or NCX files). If you are feeling clever, you could devise some way of coding an identifier by including typos or slight changes in the text: sometimes there are several correct spellings for a word, or a comma/semicolon change could be harmless, or whether or not there is a paragraph break... |
|
03-05-2010, 08:42 AM | #12 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Thank you both, charleski and Jellby, for your kind help
I have now good different kind of tips to do watermarks and I think I can figure out something. Thanks! |
03-05-2010, 09:30 AM | #13 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
More ways to include hidden identifiers:
Change the names of CSS classes or id attributes. Instead of <span class="smallcaps"> or <h1 id="chapter_1"> you could have <span class="smallcaps_abcd"> or <h1 id="chapter_1_abcd">, where "abcd" is an identifier specific for each copy. Have two or more classes with different names but exactly the same CSS, and have the exact appearance of one or the other be a code to idenitify each copy. If you have 20 cases of <span class="smallcaps">, make them <span class="smallcaps1"> and <span class="smallcaps2"> instead, that makes room for 2^20 = more than 1 million different combinations. More subtly, whether or not a fullstop is included in an HTML tag is sometimes unnoticeable, the code can be included in the instances of "<em>italic</em>." and "<em>italic.</em>". You could add unstyled <span> tags around selected letters of the text, like this: Code:
I en<span>jo</span>y my eig<span>h</span>t-a<span>n</span>d-a-half hour<span>s</span> of sleep <span>m</span>ost happ<span>i</span>ly, but i<span>t h</span>urts. Any of these methods can be defeated if the user actually modifies the code (HTML/CSS) of the book, but they'd work if the book is just uploaded as-is. |
03-05-2010, 02:21 PM | #14 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
|
wrap each chapter in a <div class="chapter"> and add a css style div.chapter:after to provide a visible watermark. additionally you can use the gimp to add a translucent watermark to your images. nearly impossible to remove once it's been done.
Along the veins of a GPG signature, there's a signatures.xml file. format is kinda complex, but you can use it. also, if you insist on using gpg and a .asc signature, you can sign a an entire folder or files inside a folder, then include the .asc file in the container without invalidating it. Another possible way is to generate a few typos on accident change the to teh, or change other larger words by one inverted character, or one missed or extra. one or two per file. things not commonly typod, but still readable. keep a list of those typos. which file/chapter and which line. when you see someone using your files, you look in those files for those typos, and within a few lines either way. if you can't find them, then your adversary either did the work himself, or did a good job covering up his criem. |
03-23-2010, 11:17 AM | #15 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: iphone
|
Quote:
What are the combinations that you are using and how's it working so far? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |
Normal to see an Adobe logo "watermark" while charging? | rahulm | Sony Reader | 3 | 03-16-2009 04:24 AM |
Canon camera manual watermark | HappyMartin | iRex | 2 | 10-30-2007 04:38 AM |