Skip to content

Commit

Permalink
updated raw_conversion notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
franioli committed Aug 31, 2023
1 parent 0ea0638 commit f7176a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions notebooks/raw_conversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -53,12 +53,12 @@
"# Examples for convert single image with convert_raw function\n",
"\n",
"# To convert a raw image file named 'my_raw_image.CR2' to JPEG format with 90% compression, apply a pp3 processing profile \n",
"ret = convert_raw(files[0], output_dir, pp3_path)\n",
"ret = convert_raw(fname=files[0], output_path=output_dir, profile_path=pp3_path)\n",
"print(ret)\n",
"\n",
"\n",
"# Convert a raw image file named 'my_raw_image.CR2' to 16 bit TIF format and apply a pp3 processing profile\n",
"ret = convert_raw(files[0], output_dir, pp3_path, '-t', '-b8', \"-Y\")\n",
"ret = convert_raw(fname=files[0], output_path=output_dir, profile_path=pp3_path, opts=['-t', '-b8', \"-Y\"])\n",
"print(ret)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ requires-python = ">=3.8"


[project.optional-dependencies]
dev = ["flake8", "black", "bumpver", "isort", "pip-tools", "pytest", "bumpver", "mkdocs", "mkdocs-material", "mkdocstrings[python]"]
dev = ["black", "bumpver", "isort", "pip-tools", "pytest", "bumpver", "mkdocs", "mkdocs-material", "mkdocstrings[python]"]

[project.urls]
Homepage = "https://github.com/franioli/image_rename_batch"
Expand Down
2 changes: 1 addition & 1 deletion src/impreproc/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def select_path_gui():
keep_dir_tree = True
rawtherapee_opts = ("-j100", "-js3", "-Y")

files = ImageList(data_dir, image_ext=image_ext, recursive=recursive)
files = ImageList(data_dir, image_ext=image_ext, recursive=recursive)
print(files.head)

# ret = convert_raw(files[0], output_dir, pp3_path)
Expand Down
3 changes: 1 addition & 2 deletions src/impreproc/images.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import logging
import os
from datetime import datetime
from importlib import import_module
from pathlib import Path
from typing import List, Union, Tuple
from typing import List, Union

import cv2
import exifread
Expand Down

0 comments on commit f7176a8

Please sign in to comment.