World: r3wp
[View] discuss view related issues
older newer | first last |
BenBran 2-Feb-2009 [8489] | Thanks Henrik. I'll take a look. |
Anton 3-Feb-2009 [8490] | http://anton.wildit.net.au/rebol/gui/demo-resize-text-list.r |
Micha 4-Feb-2009 [8491] | i need help . i run rebol 2.7.6 on ubuntu desktop - i get error : ** User Error: Bad face in screen pane! ** Near: size-text self |
kcollins 4-Feb-2009 [8492] | Micha, I think you just need to install additional fonts. The following links may be helpful: http://mail.rebol.net/maillist/msgs/42419.html https://wiki.ubuntu.com/Fonts#EnablingBitmapped Fonts |
Micha 4-Feb-2009 [8493] | thanks |
Oldes 21-Feb-2009 [8494x2] | How to clear image cache used by VID? |
in which context is the 'image-cache ? | |
amacleod 21-Feb-2009 [8496] | Just discussed something along those lines in vid+ Anton suggests setting to none |
Oldes 21-Feb-2009 [8497x2] | ech.. it's local in load-image function, sothe only way is ugly: |
error? try [load-image/clear %foo] | |
Anton 21-Feb-2009 [8499x3] | clear second second :load-image |
(an alternative way, still ugly, of course.) | |
amacleod: Oldes is talking about the LOAD-IMAGE function (not LOAD), with the image cache block only to be found in the LOAD-IMAGE function body, so we can't just set to NONE, here, unfortunately. (See the source of load-image.) | |
amacleod 21-Feb-2009 [8502] | I'll have aa look thanks, Anton. |
amacleod 23-Feb-2009 [8503] | How do I get the window to resize withthe image face? pic1: load %pic.jpg pic_size: 200x200 view/new lay: layout [pic: image pic1 pic_size] wait 2 unview lay pic/size: 50x50 view/new lay |
Henrik 23-Feb-2009 [8504x3] | you need to get a resize event from the window and apply that to the image. you can use INSERT-EVENT-FUNC for that. |
sorry, I misread... | |
lay/size needs to be set as well. Do that near pic/size. | |
amacleod 23-Feb-2009 [8507] | Got it...thanks henrik... |
Anton 23-Feb-2009 [8508] | img: load %your-image.png view window: layout [pic: image img button "change size" [pic/size: 300x200 window/size: pic/offset * 2 + pic/size show window]] |
amacleod 3-Mar-2009 [8509x2] | Can rebol save in jpg format? |
Never mind, I found a link Anton posted for image Magick image saver... | |
Oldes 3-Mar-2009 [8511x2] | If you mean this link: http://box.lebeda.ws/~hmm/rebol/save-image.html than you should know that I fixed a memory leak now. (and added a /quality refinement) |
I have much more routines from IM, but I must to clean the sources a bit. | |
Pekr 3-Mar-2009 [8513] | not entirely free, but powerfull - http://xnview.com/en/features_nc.html It enabled to Carl to batch process Italy devcon images in few minutes - no wrapper needed, just a command line ... |
Oldes 3-Mar-2009 [8514] | You don't need wrapper, but you cannot do: save-image %test.jpg to-image layout [button "hello world"] Also IM can be used as a command line tool, which I was doing quite a long time. But finally I'm working on wrapper as it's faster than doing many calls to external app. Of course.. if you want to resize 100 photos per year, you don't care if it's call or by using wrapper. |
Pekr 3-Mar-2009 [8515] | you can save temporarily as tmp, do whatever you want to image afterwards. I would not estimate overhead of calling an external app. Especially on unix systems, many tools are just command line tools anyway,no? :-) |
amacleod 3-Mar-2009 [8516] | Thanks for the info guys. Oldes, its for a personal tool so I can dfeal with the memory leak but the quality refinement sounds useful. I'll check out XNVIEW too.. |
amacleod 5-Mar-2009 [8517] | Can you have an inform window without hte title bar (and border)? |
Brock 5-Mar-2009 [8518] | Try rolling your own maybe... source inform.... would give you the important bits I would guess. |
amacleod 5-Mar-2009 [8519] | Just checking incase something was not documented.. |
amacleod 10-Mar-2009 [8520] | For some reason I can't get %CORE_RL_wand_.dll to load using Oldes' save-image script. I have it in the same directory as the script and I tried it in the systemn folders... error: ** Access Error: Cannot open CORE_RL_wand_.dll as library ** Where: context ** Near: lib_ImageMagickWand: load/library either system/version/4 = |
Graham 10-Mar-2009 [8521] | what happens if you try it from the console? |
amacleod 11-Mar-2009 [8522x2] | I treied "doing the script from console..same error. |
It might be a version problem... Using ImageMagick-6.4.9-Q16 I get a different error with version: ImageMagick-6.3.2-Q16 errror: The procedure entry point MagickOpenStream could not be located in dynamic link library CORT_RL_.dll | |
Ammon 11-Mar-2009 [8524] | I think you may need to right-click the DLL from Windoze Explorer and register it. |
amacleod 11-Mar-2009 [8525x2] | I also get different erros if I launch script from within magick folder: ** Access Error: Cannot open MagickImportImagePixels ** Where: context ** Near: set routine make routine! specs with older version |
register it? Never did that before. I do not see anything in hte right click menu about registering | |
Ammon 11-Mar-2009 [8527] | I'm probably wrong then. It's been a few years since I played with it... |
amacleod 11-Mar-2009 [8528x2] | From inside folder of the newer version I get a Visual C++ Runtime errror... program ..rebol.exe R6034 An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more info.. |
I comneted out all references to "MagickImportImagePixels" and it starts without error... but anytime I try to save it says I do not have the Encoder for that file format...: ** User Error: 0 = NoEncodeDelegateForThisImageFormat `C:\Documents and Settings\Alan\Desktop\ImageMagick-6.3.2-Q16\test.jpg' ** Near: make error! errmsg | |
Gregg 11-Mar-2009 [8530] | Alan, do you have DEP turned on? I did, and I saw the same problem. |
Oldes 11-Mar-2009 [8531x3] | you need the other libs as well I think. |
for jpeg support it will be the CORE_RL_jpeg_.dll | |
and I'm using ImageMagick 6.4.9-6 2009-02-18 Q16 - the older may be different so that's why for example the MagickImportImagePixels is missing. | |
Graham 16-Mar-2009 [8534] | if you're got an empty table or whatever, and you're wating for data to load ... do you think is better .. to hide the widget, and have a "loading...." or other busy indicator ajax like ... or flash up a flash ? |
Anton 16-Mar-2009 [8535] | Don't hide the widget. A busy indicator on top would be good, or at least have a single row in the table which says "loading data...". |
Graham 16-Mar-2009 [8536x2] | I had the "loading data" in a single row ... decided to move away from that. |
In terms of visuals, it is much more apparent that you have a result when the whole table appears as opposed to a table that fills ? right? | |
Anton 17-Mar-2009 [8538] | I think it's better to let the user see the container where the result will appear, so they can resize it appropriately etc. while they are waiting for the data. This also prepares them for the type of data that will appear, as the shape and colours of the table can remind them. Also, partially loaded data may be all that they need, and that may allow them to move on to the next step of what they are doing. |
older newer | first last |