{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# pyvips – Image processing with libvips\nhttps://libvips.github.io/pyvips/","metadata":{}},{"cell_type":"code","source":"!apt -y update && apt -y upgrade","metadata":{"_kg_hide-input":false,"execution":{"iopub.status.busy":"2023-03-16T23:01:08.326213Z","iopub.execute_input":"2023-03-16T23:01:08.326899Z","iopub.status.idle":"2023-03-16T23:07:37.184377Z","shell.execute_reply.started":"2023-03-16T23:01:08.326859Z","shell.execute_reply":"2023-03-16T23:07:37.182103Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!apt -y install -d -o=dir::cache=/kaggle/working libvips libvips-dev libvips-tools","metadata":{"_kg_hide-input":false,"execution":{"iopub.status.busy":"2023-03-16T23:07:37.189867Z","iopub.execute_input":"2023-03-16T23:07:37.190379Z","iopub.status.idle":"2023-03-16T23:08:31.070559Z","shell.execute_reply.started":"2023-03-16T23:07:37.19033Z","shell.execute_reply":"2023-03-16T23:08:31.069128Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip3 install --upgrade pip\n!pip3 download -d /kaggle/working pyvips","metadata":{"_kg_hide-input":false,"execution":{"iopub.status.busy":"2023-03-16T23:10:01.313885Z","iopub.execute_input":"2023-03-16T23:10:01.314354Z","iopub.status.idle":"2023-03-16T23:10:32.875926Z","shell.execute_reply.started":"2023-03-16T23:10:01.314296Z","shell.execute_reply":"2023-03-16T23:10:32.874831Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!dpkg -i --force-depends ./archives/*.deb >/dev/null 2>&1\n!pip3 install --quiet ./cffi-1.15.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\n!pip3 install --quiet ./pycparser-2.21-py2.py3-none-any.whl\n!pip3 install --quiet ./pyvips-2.2.1.tar.gz","metadata":{"_kg_hide-input":false,"execution":{"iopub.status.busy":"2023-03-16T23:10:36.659363Z","iopub.execute_input":"2023-03-16T23:10:36.659895Z","iopub.status.idle":"2023-03-16T23:12:02.367669Z","shell.execute_reply.started":"2023-03-16T23:10:36.659846Z","shell.execute_reply":"2023-03-16T23:12:02.366187Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import pyvips\npyvips.__version__","metadata":{"execution":{"iopub.status.busy":"2023-03-16T23:15:49.573656Z","iopub.execute_input":"2023-03-16T23:15:49.575039Z","iopub.status.idle":"2023-03-16T23:15:49.584133Z","shell.execute_reply.started":"2023-03-16T23:15:49.574976Z","shell.execute_reply":"2023-03-16T23:15:49.582709Z"},"trusted":true},"execution_count":null,"outputs":[]}]}