Odoslané pred 1 rokom
Fotografie v BLOGu jsou málo ostré. Není tam zapnutý nějaký filtr?A jaké má být Nastavení velikostí? Mám:
200x150
400x300
1845x1300
Zde je hláška kódu:
imagesx() expects parameter 1 to be resource, string given
Řádek: 30 Soubor -- www/includes/photo_functions_include.php
Na stránce -- infusions/blog/blog_admin.php?aid=45db88023db9b2e4&action=edit§ion=blog_form&blog_id=2542
Vygenerováno Uživatel-Úroveň: -103 -- IP: 193.165.96.230
zapnuto březen 03 2020 08:28:12
Označit jako
Zdrojový kód (Řádek: 20 - 40)
20 function createthumbnail($filetype, $origfile, $thumbfile, $new_w, $new_h) {
21 $settings = fusion_get_settings();
22 $origimage = '';
23 if ($filetype == 1) {
24 $origimage = imagecreatefromgif($origfile);
25 } else if ($filetype == 2) {
26 $origimage = imagecreatefromjpeg($origfile);
27 } else if ($filetype == 3) {
28 $origimage = imagecreatefrompng($origfile);
29 }
30 $old_x = imagesx($origimage);
Line 30 -- 1 den před
imagesx() expects parameter 1 to be resource, string given
31 $old_y = imagesy($origimage);
32 $ratio_x = $old_x / $new_w;
33 $ratio_y = $old_y / $new_h;
34 if ($ratio_x > $ratio_y) {
35 $thumb_w = round($old_x / $ratio_x);
36 $thumb_h = round($old_y / $ratio_x);
37 } else {
38 $thumb_w = round($old_x / $ratio_y);
39 $thumb_h = round($old_y / $ratio_y);
40 };
41
// Upravený nadpis... Dá sa to aj zrozumiteľne napísať https://cs.wikipedia.org/wiki/České_s...oňování https://cs.wikipedia.org/wiki/Český_p..._pravopis
Upravil/a RobiNN dňa 04/03/2020 21:29, pred 1 rokom