|
Crop and Scale modules don't change IMAGE_WIDTH variable from United States [214 posts] |
15 year
|
Hi STeven,
Using RR version 2.5.9, I noticed that when I Crop a 320x240 image to a lesser width, say 280x240, the IMAGE_WIDTH variable stays constant at 320. Ditto when I use the Scale module. Is this a bug or should I be using the CROP_X_START and CROP_X_END variables?
Thanks!
patrick
|
|
|
Anonymous |
15 year
|
Patrick,
Everything checks out. The scale and Crop do appear to change the variables both in tests and according to the code. Perhaps you need to pop the display_variables module AFTER the Crop and Scale module? If you place it before then it will reflect the variables at that point in the pipeline.
If not can you include a robofile that shows this issue?
STeven.
|
|
|
from United States [214 posts] |
15 year
|
Hi STeven,
Thanks for checking. Yes, I have the Display_Variables module AFTER the crop module and it still displays the original image width. Here is the simplest possible .robo file that just has the Crop module followed by the Display_Variables and on my screen I get 320 for the displayed Image_Width no matter how I set the Crop X Start and X End. I am connecting to a Logitech Pro 9000 webcam and the image gets cropped fine as far as the picture is concerned.
--patrick
program.robo
|
|
|
Anonymous |
15 year
|
Cool, thanks for the robofile. You were using the crop and we were checking scale ... the crop module did NOT update the IMAGE_WIDTH and IMAGE_HEIGHT variables. Can you download 2.5.11 and see if that helps?
Thanks,
STeven.
|
|
|
from United States [214 posts] |
15 year
|
Hi STeven,
I just tried it with 2.5.11 and, alas, I have the same problem...
--patrick
|
|
|
Anonymous |
15 year
|
Hmm, perhaps I replied too quickly and the new version did not yet get up to the site. Can you confirm that you are running 2.5.11 in the title bar?
Thanks,
STeven.
|
|
|
from United States [214 posts] |
15 year
|
Yes, it is 2.5.11 in the title bar. Image_Width is now correct after a Scale but not after a Crop.
--patrick
|
|
|
Anonymous |
15 year
|
Ok, can you try with 2.6.0 once more?
Thanks,
STeven.
|
|
|
from United States [214 posts] |
15 year
|
Hi STeven,
I just gave it a go with 2.6.0 and now the Image_Width and Image_Height variables display "N/A" after a Crop or Scale. They display fine without either of these module before the Display_Variables module.
--patrick
|
|
|
Anonymous |
15 year
|
patrick,
Opps, once more. There was an issue with the display variables module not liking how we adjusted the image_width and image_height. This should be fixed in 2.6.1. Included below is our test robofile.
:-)
STeven. program.robo
|
|
|
from United States [214 posts] |
15 year
|
Hi STeven,
Works like a charm in 2.6.1. Many thanks!
--patrick
|
|