Skip to main content
Question

resize images stored as blob

  • October 15, 2015
  • 2 replies
  • 131 views

mapper
Contributor
Forum|alt.badge.img+2
I am trying to resize several thousand images that are stored as sde attachments.  I am wondering if it is possible to do this without writing the images to disk.  I can extract the full sized images to files using the attributefilewriter. Once I have the images extracted it is straight forward to resize them using the rasterresampler. Since I have so many images I would like to avoid writing them to disk before resizing but the output port of the attributefilewriter does not contain raster data so when I conect it to resampler I get an error.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • 7842 replies
  • October 16, 2015
Hi,

 

 

I don't think a blob can be resized directly, but it's possible to create a raster data on the memory from the blob, resample it, and create a new blob of the resulting raster, if the blob format is supported by FME.

 

i.e.

 

Create a raster data from the source blog with the RasterReplacer.

 

Resize the raster with the RasterResampler

 

Extract a blob from the resulting raster with the RasterExtractor.

 

 

Takashi

Forum|alt.badge.img
  • 19 replies
  • November 8, 2018

As a follow up to this. Is it possible to get the rotation of an image attachment to rotate the image before reampling and saving. I’ve tried a few things but can’t get any to work.