GithubHelp home page GithubHelp logo

singularityf / pixivwallpaper Goto Github PK

View Code? Open in Web Editor NEW
28.0 2.0 5.0 17.29 MB

Get anime style wallpapers from daily Pixiv high ranking illustrations

License: MIT License

Python 17.86% PHP 6.18% JavaScript 24.13% TypeScript 35.09% CSS 1.11% HTML 12.05% Dockerfile 1.37% Shell 2.20%
pixiv wallpaper windows pixiv-daily-rankings

pixivwallpaper's Introduction

PixivWallpaper

License Download All Releases GitHub release

Set Windows wallpaper with daily Pixiv high ranking illustrations

将p站每日排行设为壁纸/桌布 使用说明&下载

Pixivのイラストデイリーランキングから一番いいのを壁紙にするソフトです 使い方&ダウンロード

⚠ANOUNCEMENT⚠

This repo is not actively maintained right now. The following sections have outdated information. However, there is a beta version available that can be built from the Client/PWF_Desktop folder. You can use https://us-central1-pixivwallpaper.cloudfunctions.net/PWF_backend as the API URL in the Settings tab. Please note that this beta version is a work in progress and can have bugs.

Demo

Decorate your desktop with just a simple click.

Set Wallpaper Demo

Don't like it? Then pick your own favorite.

Pick Wallpaper Demo

Find out the best wallpaper from today's Pixiv daily rankings recommended by our application with our demo here!

Description & Features

Explore the features offered by the application with our web user interface.

This application, running on Windows and Mac (with limited features), sets the best looking illustration from Pixiv Daily Rankings as your wallpaper based on your screen resolution and a smart image selection algorithm.

Pixiv is the best place to explore anime style artworks. If you like anime wallpapers, you will like this app!

You can enable the built-in swapper to automatically change your wallpaper every day.

The application also has waifu2x built-in so you'll get a high-resolution image even if the creator only uploaded a low resolution illustration.

Download

Download the latest binary from here if your machine is running 64-bit Windows or Mac OS.

pixivwallpaper's People

Contributors

singularityf avatar kadantte avatar dependabot[bot] avatar

Stargazers

 avatar ivgtr avatar  avatar Rea avatar  avatar Eric Liu avatar Cloudflying avatar  avatar Honi avatar Thomas Quan avatar Phumrapee Limpianchop avatar Denis avatar  avatar KittoKin avatar RaXianch avatar Tianci He avatar  avatar シナモン avatar Energy avatar ipcjs avatar Nan Jiang avatar Dennis Pražák avatar Austin Jackson avatar  avatar  avatar Iqbal Rifai avatar Kana avatar Riekelt Brands avatar

Watchers

James Cloos avatar  avatar

pixivwallpaper's Issues

Develop upscale script

import pandas as pd
import subprocess
from PIL import Image


min_res_thresh = 4000
ratio_thresh = 1.34


def get_scale_factor(orig_width,orig_height, target_sum):
    scale_factor=target_sum/(orig_width+orig_height)
    return scale_factor


df_artworks = pd.read_csv("artwork_info.csv")
list_files = df_artworks["Original"][df_artworks["Downloaded"]==1].tolist()
list_path = ["images/"+f for f in list_files]
# Contains (width, height)
list_size = []

print("There are {} images in total".format(len(list_path)))

for path in list_path:
    with Image.open(path) as im:
        w, h = im.size
        list_size.append((w,h))

img_info = list(zip(list_path,list_size))

# Only apply upscaling to horizontal images, ratio greater than 800/600, and resolution lower than QHD
img_info_filtered = [(path, (w, h)) for path, (w, h) in img_info if w/h>ratio_thresh and w+h<min_res_thresh]

print("There are {} images need upscaling".format(len(img_info_filtered)))

# Execute waifu2x
for path, (w,h) in img_info_filtered:
    str_command = "cd waifu2x-chainer && python3 waifu2x.py -m noise_scale -n 2 -s {} -i ../{} -o {}".format(
            get_scale_factor(w,h,min_res_thresh),
            path,
            path)
    subprocess.run(str_command,shell=True,check=True)
    break

Establish download cache

  • Save downloaded contents in different folders as separated by date

  • Delete images downloaded x days ago

Dark Theme

Can you make the GUI with Dark Theme / Mode?

Add docker support for pipeline deployment

Location of the server affects data collection. Sometimes when the connection to Pixiv is unstable, illustration download will fail. Adding docker support will make deployment easier when changing the server location is needed.

Xvfb still lingering, caused memory leak

  • Try killing the processes after execution.

  • Maybe the scripts ran indefinitely? Try adding timeout to the scripts.

\_ sshd: root@pts/0
    \_ -bash
        \_ /opt/rh/rh-python36/root/usr/bin/python download.py
        |   \_ Xvfb -br -nolisten tcp -screen 0 800x600x24 :1001
        |   \_ geckodriver --port 51806
        |       \_ /usr/lib64/firefox/firefox -marionette -foreground -no-remote -profile /tmp/rust_m
        |           \_ /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:
        |           \_ /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -intPrefs 42:

Windows OS

Is there a way how to run the server into Windows OS ?!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.