GithubHelp home page GithubHelp logo

imagehandler's Introduction

Project description

Objective:

Create a program that generates a graphical interface in which the menu has a single option:

  • Abrir base de datos

When the button is pressed, the machine's file picker wil display and allow the user to select a file with the .bdjson extension.

If the user clicks cancel, or does not select a valid file, the interface will do nothing. But if the user select a file with the indicated extension, the program will proceed with the following step.

Files with the .bdjson extension have the following form:

[
    {
        "url" : "https://....",
        "nombre" "Imagen 1"
    },
    {
        "url" : "https://....",
        "nombre" "Imagen 2"
    }
    ...
]

It is a list of dictionaries, where each one of the dictionaries corresponds to the information of an image with the data of the URL, as well as the name of said image.

When a valid file is selected, the program goes to the URL of each of the images and download the content of it.

When you have successfully downloaded the image, the program should be able to display all the images horizontally, within the empty space of the graphical interface.

Images must be displayed in a size of 100(height) x 100(width).

The name of the image will be displayed under the corresponding one, aligned to the center.

  • The process of obtaining the images must be done with the requests library.
  • Image processing should be done with the Pillow library in case it is necessary
  • The file requirements.txt of your environment must be sent

Project setup

I recommend to stablish a virtual enviroment by using pyenv:

    $ pyenv exec python3 -m venv .venv
    $ source .venv/bin/activate

Update apt:

    $ apt update

Install requeriments.txt by using:

    pip install -r requirements.txt

imagehandler's People

Contributors

max-mena-sd avatar

Watchers

 avatar

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.