photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

277
active users

#tiff

0 posts0 participants0 posts today

"Take this Waltz" - interview with writer-director Sarah Polley in Studio 9 in Toronto

A geographical fiction and about 'lack', jouissance, and gaps in life's subjectivities.

If you are into Lacan's works, this film and interview are additionally noteworthy and might be of interest.

#TIFF #Toronto #Studio9 #Lacan #film

youtube.com/watch?v=nvAio5J7Po

I just updated my #MSDOS image viewer/converter #DosView

* Updated libjpeg to 9f.
* Updated libjasper to 4.2.4.
* Fixed a crash when running out of memory during loading/display.
* Fixed version number when running DosView.
* Added help overlay in view mode.
* Patched Allegro to support more BMP formats.
* Fixed DE LSM for FreeDOS.

github.com/SuperIlu/DosView/re

#RetroComputing
#jpeg #png #qoi #webp #bmp #tga #NetPBM #ras #tiff #jpeg2000 #pcx #FreeDOS #GIF #PSD #HDR #PIC

GitHubRelease v1.7 · SuperIlu/DosViewUpdated libjpeg to 9f. Updated libjasper to 4.2.4. Fixed a crash when running out of memory during loading/display. Fixed version number when running DosView. Added key to display help overlay in v...

Alors clairement Noël n'est pas propice à la publication de billets sur la préservation numérique, mais tant pis, je publie quand même.

digipres.fr/archives/90

Un cas supplémentaire de fichier légitime considéré comme invalide par #JHOVE. Bref, la validation, c'est un moyen intéressant de comprendre des choses sur la structure des données, mais c'est pas à prendre au pied de la lettre.

Crédits pour le meme en couverture : @mickylindlar

#DigiPres_FR #TIFF #EXIF #exiftool #TIF-HUL-66

digipres.frLeave the files alone – Le petit artisan de la préservation numérique
Replied in thread

To convert a #TIFF image to grayscale in #Python you can use the Pillow library (a fork of the Python Imaging Library). Below is a simple script that will open a TIFF file, convert it to grayscale, and then save the result.

### Step 1: Install Pillow

If you haven't installed Pillow yet, you can install it via pip:

pip install Pillow

### Step 2: Create a Script to Convert to Grayscale

Here is a simple script that converts a TIFF image to grayscale:
from PIL import Image

def convert_to_grayscale(input_path, output_path):
    # Open the TIFF image
    img = Image.open(input_path)
    
    # Convert the image to grayscale
    grayscale_img = img.convert("L")
    
    # Save the grayscale image
    grayscale_img.save(output_path, format='TIFF')

if __name__ == "__main__":
    # Specify your input and output file paths
    input_image_path = "input_image.tiff"   # Replace with your input TIFF file
    output_image_path = "output_image.tiff" # The output will also be a TIFF file
    convert_to_grayscale(input_image_path, output_image_path)

### Explanation of the Script:

1.
Import: The script imports the Image class from the Pillow library.

2.
Function Definition: The convert_to_grayscale() function takes two parameters: the path of the input TIFF image and the path for the output grayscale image.

3.
Open Image: It opens the input TIFF image.

4.
Convert to Grayscale: The convert("L") function converts the image to grayscale. The mode "L" stands for luminance, which produces a grayscale image.

5.
Save Image: Finally, it saves the grayscale image as a TIFF file.

### Usage

1. Replace
"input_image.tiff" with the path to your input TIFF file.
2. Specify your desired output file path in
"output_image.tiff".

### Running the Script

You can run this script from your terminal or command prompt. Make sure the TIFF file you want to convert is in the correct path, or provide an absolute path to the file. After running, the specified output file will contain the grayscale version of the input TIFF image.

This simple approach leverages Pillow's built-in functionality to handle image format conversions efficiently.
Continued thread

You can apply a color tint to a TIFF file using #Python with libraries like Pillow (PIL) or OpenCV. Below, I'll provide a simple example using Pillow, which is a user-friendly library for image processing.

### Step 1: Install the Required Library

First, make sure you have Pillow installed. You can install it using pip if you haven't already:

pip install Pillow

### Step 2: Create a Script to Apply Color Tint

Here's a simple script that opens a
#TIFF file, applies a #color tint, and saves the tinted image:
from PIL import Image

def apply_tint(image_path, output_path, tint_color):
    # Open the image
    img = Image.open(image_path).convert("RGBA")
    
    # Create a new image for the tints
    tinted = Image.new("RGBA", img.size)
    
    # Apply the tint to each pixel
    for x in range(img.width):
        for y in range(img.height):
            r, g, b, a = img.getpixel((x, y))
            # Apply tint color
            r = int(r * tint_color[0])
            g = int(g * tint_color[1])
            b = int(b * tint_color[2])
            tinted.putpixel((x, y), (r, g, b, a))
    
    # Save the tinted image
    tinted.save(output_path, format='TIFF')

if __name__ == "__main__":
    # Define the tint color as a tuple (R, G, B) where each value is between 0 and 1
    tint_color = (1.0, 0.5, 0.5)  # Apply a red tint
    apply_tint("input_image.tiff", "output_image.tiff", tint_color)

### Explanation of the Script:

1.
Imports: The script imports the necessary Image class from the Pillow library.

2.
Function Definition: The apply_tint() function takes three parameters: the input image path, the output image path, and the tint color.

3.
Open Image: It opens the input TIFF image and converts it to "RGBA" format to handle transparency.

4.
Create Tinted Image: It creates a new blank image of the same size as the input image.

5.
Apply Tint: For every pixel, it adjusts the red, green, and blue values by multiplying them with the specified tint color. The tint color should be given as a tuple with values from 0 to 1 for each color channel.

6.
Save Image: Finally, it saves the tinted image as a TIFF file.

### Usage

Replace
"input_image.tiff" with the path to your TIFF file and specify the desired output path in "output_image.tiff". You can adjust tint_color based on the tint effect you want to achieve.

### Note:
This script works for RGBA images and multiplies the color values to apply the tint. You can modify the
tint_color tuple to achieve different tints (e.g., (0.5, 0.5, 1.0) would give a blue tint). Adjustments can also be made based on specific needs, such as different blending modes or efficiencies, especially for larger images.

If you're looking to inspect the properties of #TIFF files using a #console tool, there are several options available for various #operating systems Here are some of the most common tools you can use:

### 1.
ImageMagick
ImageMagick is a powerful command-line tool for image manipulation and inspection.

#### Installation:
- On macOS:
brew install imagemagick
- On Ubuntu:
sudo apt install imagemagick
- On Windows: Download from
ImageMagick's official website.

#### Usage:
You can use the
identify command to inspect TIFF properties.

identify -verbose file.tiff

This command will provide detailed information about the TIFF file, including size, color type, compression type, and more.

### 2.
ExifTool
ExifTool is a very popular Perl library and command-line application for reading and writing metadata.

#### Installation:
- On macOS:
brew install exiftool
- On Ubuntu:
sudo apt install exiftool
- On Windows: Download from
ExifTool's official website.

#### Usage:
You can inspect TIFF properties using:
exiftool file.tiff

This will display all available metadata for the TIFF file, including EXIF data, IPTC, XMP, etc.

### 3.
tiffinfo (libtiff)
tiffinfo is a command-line utility that comes with the libtiff library. It provides a summary of the TIFF file.

#### Installation:
- On Ubuntu:
sudo apt install libtiff-tools
- On macOS:
brew install libtiff
- Windows users can find pre-compiled binaries.

#### Usage:
To inspect a TIFF file, run:
tiffinfo file.tiff

This command will give you information about the image dimensions, data types, compression, and more.

### Summary
These tools will allow you to inspect the properties and metadata of TIFF files directly from the command line. Choose the one that fits your requirements best, based on the specific details you want to view or manipulate.
ImageMagickImageMagick – DownloadImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations.
Replied in thread

@st3fan Gesichtserkennung und automatiertes Taggen hab ich gar nicht erst mitinstalliert.

Von der Handhabung von #Raw:formaten bin ich aber echt geflasht. Nicht nur der "Standard" via libraw funktiniert problemlos, auch lassen sich unter anderem #DarkTable und #Rawtherapee (mir dann doch lieber) als Tools für den #RohbildImport (vor-) einstellen. Herrlich! 🤩🤩

Hm, vereinzelt habe ich von Leuten gehört, die Probleme mit großen Bilddateien haben, jedoch, ab wann ist etwas "groß"? Weißt Du da genaueres?

Bisher waren meine #Tiff:s Dateien selten größer als knapp über 100 MB, im Schnitt sind es so ca. 15 bis 25 MB. Bisher hatte ich nicht einmal ein Problem. Nur das Einlesen neuer Ordner dauert dann halt mal etwas länger. :wink: