Skip to content

transform with resize also changed the image extension from .jpg to .png #606

Closed
@shaojun

Description

@shaojun

Hi,
thanks for the great tool.

I'm using version 0.2.2, Ubuntu 20.04.3 LTS on x86.
I have a small testing kitti dataset, mixed with .jpg and .jpeg with size 1280x720 and 800x600 images files.
I've tried the steps to use datum:

datum --version
#0.2.2
mkdir datum_proj_real
cd datum_proj_real
datum create
datum import -f kitti ../my_small_kitti_dataset

can see:

Source 'source-1' with format 'kitti' has been added to the project

then do the transform to unify image size:

datum transform -t resize -- -dw 800 -dh 600

now checking the subfolder: source-1 in project folder: datum_proj_real, can see all images files are renamed with .png extension, and none of them can be opened by image viewer.

I also tried manually rename one of the file's extension from png to jpg, and still could not be opened with an error popup like not a valid jpg file.

could you help to check?

Metadata

Metadata

Assignees

Labels

BUGSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions