ImagePng image_helper.php

3 views
Skip to first unread message

vjach...@gmail.com

unread,
May 7, 2009, 9:40:49 AM5/7/09
to In-Portal Bugs
Vozmozhno ja opjat chto to propustil ili u menja ne ta versija
faylov ...
v image_helper posle resize, esli obrabativaem PNG files 90% png na
diske poluchajutsja bitie, dlja togo chtbi oni ne lomalisj neobhodimo
postavitj qualyti 0. dlja sebja ja sdelal tak:
if ($file_extension == 'png') {
return @$write_function($dst_image_rs, $params['dst_image'],
0,NULL);
} else ......

Primitivno, zato bistro :)

Mozhet mne kto dast repozitoriy i account gde mozhno kachnutj
posledniju versiju, a to ja uzhe ne znaju gde ispravlenno a gde net :).

Alexander Obuhovich

unread,
May 7, 2009, 10:22:17 AM5/7/09
to in-port...@googlegroups.com
Про PNG даже незнаю, я делал resize PNG и через GD и через ImageMagick но
таких проблем не возникало. Правда терялась прозрачность, если такая была,
но это было поправлено уже давно.

Alexander Obuhovich
R&D Manager
Intechnic Europe Ltd.
http://www.intechnic-europe.com
http://www.in-portal.net
Phone: +371 7804099
Fax: +371 7804098

Dmitry

unread,
May 7, 2009, 11:14:15 AM5/7/09
to in-port...@googlegroups.com
Slava,


Da, konechno - ves code kak i planirovalos budet dostupen v SVN kak Open Source, no poka vse esche v CVS i perevod zaplanirovan na sledujushuju nedelu.

Uchti chto eto In-Portal 5.0.0 RC- v novom cvete - bez Proj-CMS i Proj-Base - vse bilo objedineno. Tak chto mozhesh uvidet mnogo novogo.

Esli est' zhelanie posmotret da esche i potestirovat to Beta est' tut - http://demos.in-commerce.net/.beta/500 (root / root). Esli najdesh bugi ili zametki to pishi v etoj Grouppe - glanoe chetko opishi shagi kak ih povtorit.

Mi opublikuem SVN dostup na sledujushej nedele.



-- 


--
Best Regards,

Dmitry V. Andrejev
Vozmozhno ja opjat chto to propustil ili u menja ne ta versija
faylov ...
v image_helper posle resize, esli obrabativaem PNG files 90% png na
diske poluchajutsja bitie, dlja togo chtbi oni ne lomalisj neobhodimo
postavitj qualyti 0. dlja sebja ja sdelal tak:
          if ($file_extension == 'png') {
	 return @$write_function($dst_image_rs, $params['dst_image'],
0,NULL);
          } else ......

Primitivno, zato bistro :)

Mozhet mne kto dast repozitoriy i account gde mozhno kachnutj
posledniju versiju, a to ja uzhe ne znaju gde ispravlenno a gde net :).

M

Vjacheslav Vishnjakov

unread,
May 9, 2009, 6:09:00 PM5/9/09
to in-port...@googlegroups.com

Dima Privet, posmotrel demo

na Betta versii s Pools takajazhe osibka kak ja uzhe pisal. V FF i IE

poprobuju po shagam opisatj kak poluchaetsja.

1.       Polls Add.

2.       Zapolnjaju polja Name i Question

3.       Perexozhu na tab Answers, vmesta perexoda ostajusj na tomzhe ekrane s oshibkami o tom chto polja   Name i Question – is required

4.       Zapolnjaju poja snova perexozhu na answers teperj vsje OK

Tochno takzhe proisxodit esli ja vmesto perexoda na Answers srazu nazhimaju Save.

Pri otkritii shablona na Add v source imeju:

                                                <td class="control-cell" valign="top">

                                                                <span style="" id="poll[][PollId]">

                                                                               

                                                                </span>

                                                                                                                                <input type="hidden" name="poll[][PollId]" id="poll[][PollId]" value="">

                                                </td>

                                                <script type="text/javascript">

                                add_form_error('poll', 'PollId', 'poll[][PollId]', '')

                </script>

               

                                                                </tr>

                                                                                                                <tr class="edit-form-even">

                                                               

                <td class="label-cell" onmouseover="show_form_error('poll', 'Name')" onmouseout="hide_form_error('poll')">

                                                                                <label for="poll[][Name]">

                                                                <span class="" >

                                                                Name</span><span class="field-required">&nbsp;*</span>:

                                                </label>

                                                </td>

......

t.e. poll[][PollId] net indeksa massiva. Posle pervoy neudachnoy popitki soxranenija pojavljaetsja nulevoy indeks massiva, chto po logike dolzyhno proisxoditj  pri pervom otkritii massiva, kogda ja nazhimaju Add. Poluchaetsja takaja erunda, chto pri perexode na drugoy tab mi popadaem v funkciju
OnPreSaveCreated(&$event)

v ney

if($items_info) $field_values = array_shift($items_info);

a tak kak $items_info imeet vid  $items_info[0][Name];  vid  $items_info[1][Question]; ..... v $field_values  popadaet tolko pervoe pole a daljse SetFieldsFromHash ............

 

                Eshje odnu interesnuju fishku zametil:

V Levom tree raskrivaesh Structure & data nazhimaesh na Products, potom eshje na kakoy nibudj katalog, Javno vidno chto s pomoshju ajax podgruzhetsja spisok items dlja vibrannogo cataloga, potom nazhimaju na  tot News, kotoriy naxoditsja za predelami  Structure & data, t.e. tot kotoriy nad Polls, nikakogo Refresh pravogo frame kak ja do etogo naxodilsja v posledney vibrannoy kategorii tak i naxozhusj skolko bi ne davil na news, esli nazhatj na ljubuju druguju sekciju a potom na news togda vsje ok.  

Ne screenshot vidno vibranna categorija News a v pravom frame ostajetsja zagruzhennoy Products.

 

Mozhet ja vsje eto krivo objasnjaju, esli nado v ponedeljnik ili vo vtornik ja viydu v skype i poprobuem povtoritj vsaje eto vmeste.

 

Ja prilozhil 3 screenshota dva dlja Polls i odin dlja News


 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.325 / Virus Database: 270.12.21/2103 - Release Date: 05/07/09 18:05:00

Poll1.jpg
poll2.jpg
news.jpg

Alexander Obuhovich

unread,
May 11, 2009, 2:46:54 AM5/11/09
to in-port...@googlegroups.com

Про первый пункт: там в poll_list.tpl для создания новой записи вызывалась std_edit_item вместо std_precreate_item.

Про второй пункт: смог повторить проблему, пока не чинил, буду позже чинить, тогда и напишу.

 

Alexander Obuhovich

R&D Manager

Intechnic Europe Ltd.

http://www.intechnic-europe.com

http://www.in-portal.net

Phone: +371 7804099

Fax: +371 7804098

 

Dmitry A.

unread,
May 11, 2009, 1:54:39 PM5/11/09
to In-Portal Bugs
Slava,


Spasibo za tvoj "input" i detalnoe opisanie najdenih problem!


New BETA bili created segodnya -- http://demos.in-commerce.net/.beta/500/admin
(root / root).

1. Polls bug pochinen.
2. News (i drugih modulej) budet skoro pochinen


Budem blagodarni esli budet vozmozhnost prodolzhat restirovanie.


Spasibo!








On May 9, 5:09 pm, "Vjacheslav Vishnjakov" <vjachesl...@gmail.com>
wrote:
> Esli est' zhelanie posmotret da esche i potestirovat to Beta est' tut -http://demos.in-commerce.net/.beta/500(root / root). Esli najdesh bugi ili zametki to pishi v etoj Grouppe - glanoe chetko opishi shagi kak ih povtorit.
>
> Mi opublikuem SVN dostup na sledujushej nedele.
>
> --
>
> --
> Best Regards,
>
> Dmitry V. Andrejev
>
> -----Original Message-----
> From: vjachesl...@gmail.com <vjachesl...@gmail.com <mailto:%22vjachesl...@gmail.com%22%20%3cvjachesl...@gmail.com%3e> >
>
> Reply-To: in-port...@googlegroups.com
> To: In-Portal Bugs <in-port...@googlegroups.com <mailto:In-Portal%20Bugs%20%3cin-por...@googlegroups.com%3e> >
> Subject: ImagePng image_helper.php
> Date: Thu, 7 May 2009 06:40:49 -0700 (PDT)
> Mailer: G2/1.0
>
> Vozmozhno ja opjat chto to propustil ili u menja ne ta versija
> faylov ...
> v image_helper posle resize, esli obrabativaem PNG files 90% png na
> diske poluchajutsja bitie, dlja togo chtbi oni ne lomalisj neobhodimo
> postavitj qualyti 0. dlja sebja ja sdelal tak:
>           if ($file_extension == 'png') {
>          return @$write_function($dst_image_rs, $params['dst_image'],
> 0,NULL);
>           } else ......
>
> Primitivno, zato bistro :)
>
> Mozhet mne kto dast repozitoriy i account gde mozhno kachnutj
> posledniju versiju, a to ja uzhe ne znaju gde ispravlenno a gde net :).
>
> M
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 8.5.325 / Virus Database: 270.12.21/2103 - Release Date: 05/07/09 18:05:00
>
>
>
>  Poll1.jpg
> 218KViewDownload
>
>  poll2.jpg
> 221KViewDownload
>
>  news.jpg
> 81KViewDownload
Reply all
Reply to author
Forward
0 new messages