# Issue during loading sequence of jpg files

**URL:** <https://discourse.slicer.org/t/issue-during-loading-sequence-of-jpg-files/5969>\
**Category:** Support\
**Tags:** file-import\
**Created:** [February 28, 2019, 3:10pm UTC](https://discourse.slicer.org/t/issue-during-loading-sequence-of-jpg-files/5969 "2019-02-28T15:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fhk](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@fhk](https://discourse.slicer.org/u/fhk)\
**Post date:** [February 28, 2019, 3:10pm UTC](https://discourse.slicer.org/t/issue-during-loading-sequence-of-jpg-files/5969/1 "2019-02-28T15:10:36Z")

</div>

Hi, I’m trying to load sequence of jpg files using this guide: [https://www.slicer.org/wiki/Documentation/Nightly/FAQ#How\_to\_load\_data\_from\_a\_sequence\_of\_jpg.2C\_tif.2C\_or\_png\_files.3F](https://www.slicer.org/wiki/Documentation/Nightly/FAQ#How_to_load_data_from_a_sequence_of_jpg.2C_tif.2C_or_png_files.3F)

Unfortunately nothing shows up in data module. Naming convention is: Transverse\_00001.jpg (number of leading 0’s decreases as image index increases eg. Transverse\_00001.jpg, Transverse\_00010.jpg and so on.)

I launched slicer in verbose mode. Here is log:

```auto
Exception from vtkITK MegaMacro: 
itk::InvalidRequestedRegionError (0x51bf4d0)
Location: "unknown" 
File: /work/Preview/Slicer-0-build/ITKv4/Modules/IO/ImageBase/include/itkImageFileReader.hxx
Line: 350
Description: ImageIO returns IO region that does not fully contain the requested regionRequested region: ImageRegion (0x7ffc70063b40)
  Dimension: 3
  Index: [0, 0, 0]
  Size: [708, 759, 1]
StreamableRegion region: ImageRegion (0x7ffc70063b00)
  Dimension: 3
  Index: [0, 0, 0]
  Size: [623, 708, 1]

Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries(0x47ffd40) returned failure for request: vtkInformation (0x53523e0)
  Debug: Off
  Modified Time: 420830
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

UpdateFromSeries: Unsupported number of components: 1 != 3

ReadData: This is not a nrrd file

ReadData: Cannot read file as a volume of type DiffusionTensorVolume[fullName = /home/maciek/VHP2/Transverse_00000.jpg]
	Number of files listed in the node = 0.
	File reader says it was able to read 768 files.
	File reader used the archetype file name of /home/maciek/VHP2/Transverse_00000.jpg [reader 0th file name = /home/maciek/VHP2/Transverse_00000.jpg]
FileFormatError

ReadData: This is not a nrrd file

ReadData: Cannot read file as a volume of type VectorVolume[fullName = /home/maciek/VHP2/Transverse_00000.jpg]
	Number of files listed in the node = 0.
	File reader says it was able to read 768 files.
	File reader used the archetype file name of /home/maciek/VHP2/Transverse_00000.jpg [reader 0th file name = /home/maciek/VHP2/Transverse_00000.jpg]
FileFormatError

ReadData: Cannot read file as a volume of type Volume[fullName = /home/maciek/VHP2/Transverse_00000.jpg]
	Number of files listed in the node = 0.
	File reader says it was able to read 768 files.
	File reader used the archetype file name of /home/maciek/VHP2/Transverse_00000.jpg [reader 0th file name = /home/maciek/VHP2/Transverse_00000.jpg]
FileFormatError
```

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 28, 2019, 3:11pm UTC](https://discourse.slicer.org/t/issue-during-loading-sequence-of-jpg-files/5969/2 "2019-02-28T15:11:51Z")

</div>

All the images must have the same size (number of rows and columns).

---

<div class="post-metadata">

**Author:** ![fhk](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@fhk](https://discourse.slicer.org/u/fhk)\
**Post date:** [February 28, 2019, 3:31pm UTC](https://discourse.slicer.org/t/issue-during-loading-sequence-of-jpg-files/5969/3 "2019-02-28T15:31:01Z")

</div>

Thank you so much. It was the case.
