If the image has no transparency
convert src.png mask.png -alpha off -compose copy_opacity -composite result.png
import os | |
import sys | |
import subprocess | |
from PIL import Image | |
ROTATE = True | |
CREATE_PAIRS = True | |
try: | |
folder = sys.argv[1] |
# Previous code | |
def fallback_translation_button(self, field_name): | |
language, translation = self.get_translation(field_name, return_language=True) | |
return translationURL(translation, from_language=language, with_wrapper=True) | |
def fallback_translation_button(self, field_name): | |
language, translation = self.get_translation(field_name, return_language=True) | |
return translationURL(translation, from_language=language, with_wrapper=True) |
{ | |
"twitter": [ | |
"CobaltWolfArt", | |
"SylPrime", | |
"moypumpkin", | |
"DJ_Tiya2", | |
"hanabyka", | |
"Lunalaxy", | |
"mandlamZA", | |
"kataakelacena", |
card id, level, appeal, stamina, technique for SR Honoka | |
100012001 1 1280 960 960 | |
100012001 2 1291 969 969 | |
100012001 3 1302 977 977 | |
100012001 4 1313 985 985 | |
100012001 5 1324 993 993 | |
100012001 6 1335 1001 1001 | |
100012001 7 1346 1009 1009 | |
100012001 8 1356 1017 1017 | |
100012001 9 1367 1026 1026 |
All links: https://www.one-tab.com/page/s4RtxqyQRJ-ft05wn1OHhQ
Bandori Party: | |
- has activities now! | |
- preview of the new logo by violerR | |
- available in Vietnamese | |
- French translation fully completed | |
Cinderella Producers: | |
- We are updating it, and it will be about the whole Idolm@ster license! | |
School Idol Tomodachi: |
=GOOGLEFINANCE("CURRENCY:JPYUSD")*REGEXEXTRACT(C182,"\d+") |
// this is the function being called whenever a page gets loaded, including when you scroll to get the next page | |
// you need to configure your view in magicollections.py to specify that you want this function to be called | |
// this function is in main.py, but for some pages that are not loaded often (staff pages, settings) or are | |
// big enough you can have a file just for this page like `settings.js` (for what you're trying to do main.js is enough) | |
function loadCardInList() { | |
... | |
// Show/hide include_cameos when member_id is set | |
// $(xxx) is a way to retrieve an HTML element currently on the page | |
// "#sidebar-wrapper #id_member_id" is the selector to find the elements. it's very similar to CSS selectors. |
# Original calendar thingy | |
@property | |
def availability_calendar(self): | |
calendar = [['', 'M', 'T', 'W', 'T', 'F', 'S', 'S']] + [ | |
[self._I_TO_AVAILABILITY[i] if j == 0 else 'no' for j in range(8)] | |
for i in range(len(self.AVAILABILITY_CHOICES)) | |
] | |
for a, v in self.availability.items(): | |
if v: |