Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 07:50:59 Ivanko B wrote: Please try with the attached photos :) [200K archive] (especially choose small) Empty memory is 1796kB, after loading 2260kB, after clearing the grid 2012kB. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
Looks nice :) Some utlities have good decent conversion speed: 1) http://www.graphicsmagick.org/GraphicsMagick.html genetares thumbnails 48x48 from 6M JPEG in a half os second for %%f in (*.jpg) do gm convert %%f -thumbnail 48x48 -gravity center .\rsz\gm_%%f 1) ffmpeg (libswscale) : # for %%f in (*.jpg) do ffmpeg.exe -i %%f -vf scale=-1:48 .\rsz\t_%%f 2null but all they are far from real-time. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 16:44:51 Ivanko B wrote: Looks nice :) Some utlities have good decent conversion speed: 1) http://www.graphicsmagick.org/GraphicsMagick.html genetares thumbnails 48x48 from 6M JPEG in a half os second for %%f in (*.jpg) do gm convert %%f -thumbnail 48x48 -gravity center .\rsz\gm_%%f 1) ffmpeg (libswscale) : # for %%f in (*.jpg) do ffmpeg.exe -i %%f -vf scale=-1:48 .\rsz\t_%%f 2null but all they are far from real-time. Needs probably a special subsampling jpeg decoder. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Sunday 03 February 2013 20:32:01 Ivanko B wrote: - unpack the attached project - put many 100KB..200KB JPG files to the project directory - build run the project The project should show small previews for the images. for i:= 0 to high(filenames) do begin r:= ceil((i+1)/datacols.count)-1; c:= i mod datacols.count; tdataimage(datacols[c].editwidget)[r]:= readfiledatastring(filenames[i]); end; Q: can loading time be optimized if we have small previews ? Load the thumbs in a timagelist and use a tlistviw for displaying. Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
Load the thumbs in a timagelist and use a tlistviw for displaying. = How to get these thumbs so that not to take 150..200M of RAM for 35..40 of 100K JPEGs ? (the testcase east 145..160M of RAM fro these) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
It dosn't buil on vanilla FPC 2,.6.0: === Compiling D:\GITROOT\mseide-msegui\lib\common\kernel\windows\msewindnd.pas Compiling main.pas Compiling main_mfm.pas Compiling D:\GITROOT\mseide-msegui\lib\common\image\mseformattiffread.pas Compiling D:\GITROOT\mseide-msegui\lib\common\fpccompatibility\fpreadtiff.pas PPU Loading C:\FPC\2.6.0\units\i386-win32\fcl-image\fptiffcmn.ppu Recompiling FPTiffCmn, checksum changed for fpimage Fatal: Can't find unit FPTiffCmn used by FPReadTiff Fatal: Compilation aborted Having commented the TOFFREAD use, we have: = [...] Compiling D:\GITROOT\mseide-msegui\lib\common\sysutils\msemime.pas Compiling D:\GITROOT\mseide-msegui\lib\common\graphics\msegdi32gdi.pas Compiling D:\GITROOT\mseide-msegui\lib\common\kernel\windows\msewindnd.pas Compiling main.pas main.pas(46,37) Error: Incompatible type for arg no. 3: Got Boolean, expected rectty main.pas(57) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted PS: How does TImage perform fitting image ? By changing in-memory bitmap ? Or by corrections when painting on canvas ? If the later then it may be very inefficient as to mamory usage (like in the testcase which eats 100+ Mbytes RAM on previewing 40 JPEG files). -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 05:50:54 Ivanko B wrote: It dosn't buil on vanilla FPC 2,.6.0: === Compiling D:\GITROOT\mseide-msegui\lib\common\kernel\windows\msewindnd.pas Compiling main.pas Compiling main_mfm.pas Compiling D:\GITROOT\mseide-msegui\lib\common\image\mseformattiffread.pas Compiling D:\GITROOT\mseide-msegui\lib\common\fpccompatibility\fpreadtiff.pas PPU Loading C:\FPC\2.6.0\units\i386-win32\fcl-image\fptiffcmn.ppu Recompiling FPTiffCmn, checksum changed for fpimage Fatal: Can't find unit FPTiffCmn used by FPReadTiff Fatal: Compilation aborted Please update MSEgui to git *master* c8751ec5fc90a12a0586ca4d5fb04938e7f6c7a6 Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
Not git-pushed yet :) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
100+Mbytes looks strange. With the widgetgrid based testcase at Yours ? -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 06:29:54 Ivanko B wrote: Not git-pushed yet :) It is, see attachment. Please note the *master* branch. Martin attachment: gitorious.png-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 06:40:33 Ivanko B wrote: 100+Mbytes looks strange. With the widgetgrid based testcase at Yours ? I don't have so much images. ;-) Martin -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
It is, see attachment. Please note the *master* branch. Me use mclasses as the default. Should me switch back to the master one ? -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
On Monday 04 February 2013 06:59:18 Ivanko B wrote: It is, see attachment. Please note the *master* branch. Me use mclasses as the default. Should me switch back to the master one ? Yes, mclasses has been merged to master. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
The listview example shows empty area for aprox 30 JPEGs after 1 minute of waiting. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
But 50...100 times as slower compared to preview window of XNView (for 102 files of total size 53MB ) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
FastImageResizer 0.98 (considered to be a good resizer) shows results similar to the listview project. It seems that XNview applies some kind of trickery :) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
fpImage is slow. === No too much. Really 1.5..2 as slower times compared to FastImageResizer. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TWidgetGrid TDataImage-s : errors on reading draphic data
And others resizers too :) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
On Friday 26 October 2012 19:13:56 Alexandre Minoshi wrote: tdataimage1.gridvalue[i] := readfiledatastring(path to file); Program crashed if file not found : === An unhandled exception occurred at $0813CACF : EFCreateError : Unable to open file /mnt/data/projects/mse/mplayer/xelplayer14 Победа try tdataimage1.gridvalue[i] := readfiledatastring(path to file); except application.handleexception; //if you want to show an errormessage end; or var str1: string; [...] if tryreadfiledatastring(path to file,str1) then begin tdataimage1.gridvalue[i]:= str1; end; Martin -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
On Friday 26 October 2012 19:13:56 Alexandre Minoshi wrote: tdataimage1.gridvalue[i] := readfiledatastring(path to file); Program crashed if file not found : === BTW, if you don't want to crash the program by an exception move the critical code from onloaded to onevenloopstart. Exceptions then will be handled by the application instance in main even loop. Martin -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
On Friday 26 October 2012 17:49:37 Alexandre Minoshi wrote: Hello! Today two questions: 1. How to use twidgetgrid + tdataimage? For example I want to show list of pictures and descriptions for them. I try next code twidgetgrid1.rowcount := 3; for i := 0 to 3 do begin tdataimage1[i] := path to file; tdataimage1.gridvalue[i] := readfiledatastring(path to file); tstringedit1[i] := 'This is picture number ' + inttostr(i); end; but got error No member is provided to access property There is no default property defined, git master 1dc8178a0a97d5daf490ad91b28e8e150c5415e7 has it. 2.How hide end buttons in scrollbars in *grids ? With tsider it is easy : need to set tslider.scrollbar.buttonendlength := -1 But scrollbars in *grids has not analog property. There is only tstringgrid.frame.buttonlength, but no tstringgrid.frame.buttonendlength. git master 1dc8178a0a97d5daf490ad91b28e8e150c5415e7 has it. Martin -- The Windows 8 Center In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
Thank you very much. Yours, Alexandre Minoshi On Friday 26 October 2012 17:49:37 Alexandre Minoshi wrote: Hello! Today two questions: 1. How to use twidgetgrid + tdataimage? For example I want to show list of pictures and descriptions for them. I try next code twidgetgrid1.rowcount := 3; for i := 0 to 3 do begin tdataimage1[i] := path to file; tdataimage1.gridvalue[i] := readfiledatastring(path to file); tstringedit1[i] := 'This is picture number ' + inttostr(i); end; but got error No member is provided to access property There is no default property defined, git master 1dc8178a0a97d5daf490ad91b28e8e150c5415e7 has it. 2.How hide end buttons in scrollbars in *grids ? With tsider it is easy : need to set tslider.scrollbar.buttonendlength := -1 But scrollbars in *grids has not analog property. There is only tstringgrid.frame.buttonlength, but no tstringgrid.frame.buttonendlength. git master 1dc8178a0a97d5daf490ad91b28e8e150c5415e7 has it. Martin -- The Windows 8 Center In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk -- The Windows 8 Center In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
tdataimage1.gridvalue[i] := readfiledatastring(path to file); Program crashed if file not found : === An unhandled exception occurred at $0813CACF : EFCreateError : Unable to open file /mnt/data/projects/mse/mplayer/xelplayer14 Победа $0813CACF TMSEFILESTREAM__CREATE, line 1038 of /mnt/data/bin/mseide/msegit/lib/common/kernel/msestream.pas $0813AEA7 READFILEDATASTRING, line 537 of /mnt/data/bin/mseide/msegit/lib/common/kernel/msestream.pas $0809A00D TMAINFO__LOADRADIOTV, line 1611 of main.pas $08099AF4 TMAINFO__ON_LOADRADIO, line 1575 of main.pas $0809369C TMAINFO__ON_LOADED, line 411 of main.pas $0808FC17 TCUSTOMMSEFORM__DOAFTERLOAD, line 899 of /mnt/data/bin/mseide/msegit/lib/common/widgets/mseforms.pas $080FA69C TLOADMODULETRACKER__NOTIFYLOADING, line 2682 of /mnt/data/bin/mseide/msegit/lib/common/kernel/mseclasses.pas $080FA886 INITMSECOMPONENT, line 2799 of /mnt/data/bin/mseide/msegit/lib/common/kernel/mseclasses.pas $080FAADA LOADMSEMODULE, line 2896 of /mnt/data/bin/mseide/msegit/lib/common/kernel/mseclasses.pas $0808F59D TCUSTOMMSEFORM__CREATE, line 804 of /mnt/data/bin/mseide/msegit/lib/common/widgets/mseforms.pas $08092183 TMSEFORM__CREATE, line 1868 of /mnt/data/bin/mseide/msegit/lib/common/widgets/mseforms.pas $0808F752 TCUSTOMMSEFORM__CREATE, line 822 of /mnt/data/bin/mseide/msegit/lib/common/widgets/mseforms.pas $080F8F8C CREATEMODULE, line 2008 of /mnt/data/bin/mseide/msegit/lib/common/kernel/mseclasses.pas $0808BEED TGUIAPPLICATION__CREATEFORM, line 16643 of /mnt/data/bin/mseide/msegit/lib/common/kernel/msegui.pas $0804BFE1 main, line 81 of xelplayer.pas === It`s not big problem I wrote if fileexists(path to file) then tdataimage1.gridvalue[i] := readfiledatastring(path to file); Yours, Alexandre Minoshi -- The Windows 8 Center In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] twidgetgrid + tdataimage
Hallo Alexandre, Du schriebst am Sat, 27 Oct 2012 00:13:56 +0700: tdataimage1.gridvalue[i] := readfiledatastring(path to file); Program crashed if file not found : That's probabely intended behaviour - there are no data to process if there is no file to provide them. That's why there are these test like fileexists or the equivalent exception in the first place. File operations in an application have to be secured by such constructs in _every_ case. Having the program stop (crash) through the implied test is one method, it's just the rudest one. ;-) -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) --- Mit freundlichen Grüßen, S. Schicktanz --- -- WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk