hey Tekana,
using the raster image framework might be an option here, but also an overkill. it uses more memory than necessary for simply displaying an image.
can you tell me the OJ version you tried your step-by-step list with? the repositioning reset issue w/ the referenced image loader should have been fixed in the latest snapshots avail here
https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/
..ede
On 16.04.2016 14:26, 'Tekena Amah' via openjump-users wrote:
> Hi Giuseppe,
>
> Thanks a lot. That did the trick! The image quality even looks higher.
>
>
> Sincerely,
> Tekena
>
>
> On Saturday, April 16, 2016 5:27 PM, Giuseppe Aruta <
giusepp...@gmail.com> wrote:
>
>
> Hi Tekena,
> as I can see the problem is related to the usage of layer.class to load an image (/Open>Layer/). This method currently doesn't support saving resizing/rectify/reprojection of image files.
> You should use RasterImageLayer.class instead (/Open>Sextante Raster Image/). It support some image types file (TIT, JPG, PNG and from newer OJ night build BMP and JP2) and you can do some modification of the image (resize and move). There are 2 ways to do it.
>
> A)
>
> a) open the image via Sextante Raster
> b) select the image and click the plugin "*Layer>Export Envelope as geometry*". The envelope of the image will be created as a square/rectangle yellow geometry in a new _vector laye_r (name Geometry_multiple_source, I think). You probably won't see the geometry as this layer is _below_ the image (sextante) layer
> c) make this vector layer _editable_ and select the yellow geometry
> d) move (or resize this geometry) in the place you need
> e) Rename the _vector layer_ as "*Fence*". In this way OpenJUMP recognize this vector layer bas an auxiliary fence layer.
> f) select again the image (sextante) layer and click "*Warp image to Fence*".
> g) a new image raster layer is create in the corresponding fence geometry position.
> You can save it as a TIF image with its worldfile (*Layer menu>Save Raster Image as Image*). Eventually you can reload this new file as a Layer.class (Open>Layer).
> Note that in this way you can only do the fundamental 2 affine modification of an image (_move _and _resize_)
>
> B)
> This procedure allows also to _rotate_ the image
>
> a) open the image via Sextante Raster
> b) Open warp toolbox (*Tools>warp>warping*)
> c) select the tool "*draw warping vector*"
> d) draw from 1 to 3 vectors:
>
> * 1 vector = move the image
> * 2 vectors = move/resize/rotate the image
> * 3 vectors = move/resize/rotate/shear the image (be aware that shear will deform the quality of the image - there are still some problems on re-sampling raster)
>
> e) click on*tool>warp>Affine transform (from warping vectors)*
> f )a new image raster layer is create and rotate, eventually moved/resized.
> You can save it as a TIF image with its worldfile (*Layer menu>Save Raster Image as Image*). Eventually you can reload this new file as a Layer.class (Open>Layer).