Whatsup - לינוקס, תוכנה חופשית וקוד פתוח בעברית

מה חסר לי בלינוקס ? - איך להוסיף watermark על תמונה

Anonymous - 04/01/2018 - 13:08
נושא ההודעה: איך להוסיף watermark על תמונה
יש לי מלא תמונות, ואני רוצה לשים לכולם בפינה הימנית תמונה קטנה watermak, מישהו יכול להגיד לי איך לעשות?
mksoft - 04/01/2018 - 14:32
נושא ההודעה:
אפשר להשתמש ב-image magick ולתת לו לרוץ על קבצים/תיקיה:
http://www.xoogu.com/2013/how-to-automatically-watermark-or-batch-watermark-photos-using-imagemagick/
http://www.the-art-of-web.com/system/imagemagick-watermark/
Anonymous - 04/01/2018 - 16:03
נושא ההודעה:
אני קצת הולך לאיבוד בהסברים שם. יש לי תיקיה עם עשרות אלפי תמונות, כבר הקטנתי את כולם לאותו גודל, ככה שזה כבר נחסך לי. כל מה שאני צריך זה לקחת תמונה SVG עם רקע שקוף או PNG עם רקע שקוף, ולהלביש אותה על התמונות שיש לי בלי לשנות את השם של התמונות.
התמונת water mark היא אותה גודל כמו התמונות שלי, ככה שזה פשוט צריך לעשות סנדביץ משתי התמונות ולשמור על השם של התמונה
mksoft - 04/01/2018 - 16:28
נושא ההודעה:
הבט בקישורים הנ"ל בפקודת ה־composite, בנה את הפקודה שצריך כך שתעבוד טוב על קובץ בודד (שמור גיבוי של הקובץ ללא watermark).

לאחר שעובד, לבנות לולאה שתעשה את זה על הקבצים (יש בקישורים הנ"ל).
Anonymous - 04/01/2018 - 17:32
נושא ההודעה:
מישהו עשה לך את העבודה:
https://stackoverflow.com/a/5533905/246387
Anonymous - 04/01/2018 - 17:46
נושא ההודעה: Re: תוספת watermark לתמונה בגימפ, אך חסר סקריפט ליותר מאחת
Anonymous :
יש לי מלא תמונות, ואני רוצה לשים לכולם בפינה הימנית תמונה קטנה watermak, מישהו יכול להגיד לי איך לעשות?

בגימפ, לפי https://www.youtube.com/watch?v=n4OBn5DJdjk:
קוד:

    Start by creating the text of the watermark.

    0:20min / 6:28min
        File → New... → Advanced options → Fill with → White
    0:47min / 6:28min
        Foreground color: pure gray
    1:02min / 6:28min
        Tools → Text (insert the text)
    1:28min / 6:28min
        Turn off the background layer
    1:34min / 6:28min
        Layer → Duplicate Layer of the text
    1:37min / 6:28min
        Select the middle layer
    1:44min / 6:28min
        Colors → Levels → Output Levels to pure white (left and right counters will read 255)
    1:54min / 6:28min
        One can see it by turning off the top layer
    1:57min / 6:28min
        Filters → Blur → Blur
    2:02min / 6:28min
        Move the layer off just a bit
    2:26min / 6:28min
        Layer → Duplicate Layer
    2:31min / 6:28min
        Colors → Levels → Output Levels to pure black (left and right counters will read 0)
    2:40min / 6:28min
        Move the layer off just a bit in the opposite direction to the prevoius movement
    2:56min / 6:28min
        Select the top layer, Layer → New from Visible
    3:11min / 6:28min
        Edit → Copy

    Now add the watermark to the image. The next steps are with the image where the water mark is requested.

    3:13min / 6:28min
        File → Open
    3:16min / 6:28min
        Edit → Paste
    3:28min / 6:28min
        Layer → To New Layer
    3:38min / 6:28min
        Set the Mode to Overlay
    3:58min / 6:28min
        Layer → Duplicate Layer

אך חסר סקריפט, או טיפול אחר, למקרה של הרבה תמונות. וכנראה יש עוד חסרונות.
Anonymous - 04/01/2018 - 18:52
נושא ההודעה:
דרך אגב, יש פורק של ImageMagick בשם graphickmagick . הם טוענים שהם עובדים מהר יותר.

למישהו יצא להשוות ביצועים?
כל הזמנים הם GMT + 2 שעות