示例#1
0
def site_ico_new(user_id, pic, site_id=None):
    pic_id = pic_new_save(CID_SITE_ICO, user_id, pic)

    p96 = pic_square(pic, 96, size=96)
    fs_set_jpg("96", pic_id, p96)

    p211 = pic_resize_width_cut_height_if_large(pic, 211)
    fs_set_jpg("211", pic_id, p211)

    return pic_id
示例#2
0
def site_ico_new(user_id, pic, site_id=None):
    pic_id = pic_new_save(CID_SITE_ICO, user_id, pic)

    p96 = pic_square(pic, 96, size=96)
    fs_set_jpg('96', pic_id, p96)

    p211 = pic_resize_width_cut_height_if_large(pic, 211)
    fs_set_jpg('211', pic_id, p211)

    return pic_id
示例#3
0
def ico_new(id, pic):
    pic_id = pic_new_save(CID_ICO, id, pic)
    ico_save(pic_id, pic)
    ico.set(id, pic_id)
    ico_pos_new(id)
    return pic_id
示例#4
0
def ico_new(id, pic):
    pic_id = pic_new_save(CID_ICO, id, pic)
    ico_save(pic_id, pic)
    ico.set(id, pic_id)
    ico_pos_new(id)
    return pic_id