Jump to content

picarica

Members
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

7 Neutral

About picarica

  • Rank
    Jr. Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. yes thanks that function works perfectly, i just run it once, and generate new variations its good, and ye i generated many i have over 200 MB of images rn
  2. i came across the same problem i need to upload ~1000 images and i got same error, every image has tag, how can this be resolved? does this count as necro bumping if it wasnt been resolved ?
  3. yep just as i thought after changing different prefix it loaded correctly, i wonder are old images stored in assets folder? if so i dont have permission to delete them, is there some option to flush old unused pics ?
  4. yes i tried anything, also there is not center in the github link u sent me, not sure what's wrong this is the syntax $wmImage = $image->pim2Load('wm', ['quality'=>70, 'sharpening'=>'none', 'defaultGamma'=>-1])->watermarkLogo($frame, $position='w', $padding=1.5)->brightness(50)->pimSave(); maybe the image is weird? but is 1000×100 image. by the image i mean the watermark i used, its just text mildly edited ill post the resulting picture just tried $position='center' and $position='C', it doesnt seem like updating 😕 but why no errors or logs
  5. just tried yout plugin works perfectly, i used it with premade tranparent iamge but one thing doesnt work the $position='NW', i tried changing it to 'center' or 'NE' but no changes, is it working properly? it seems like its defaulting ot the top left corner
  6. avbimage seems fine but i have problems implementing it into my code beacuse $insert = $page->images()->first()->image()->insert($pages->get('/settings/')->watermark, 'bottom-right', 10, 10); echo "<img src='{$insert->encode('data-url')}' />"; cannot work so i edited it with $insert = $image->images()->first()->image()->insert($pages->get('/settings/')->watermark, 'bottom-right', 10, 10); yet i still get error Breaking news… Error: Exception: Method Pageimage::images does not exist or is not callable in this context (in wire/core/Wire.php line 544) not sure what i am doing wrong, i dont get it why there is images function the first function then AGAIN image function? is that all neccessary when i have it in foreach so in my logic it should be like $insert = $image->image()->insert($pages->get('/settings/')->watermark, 'bottom-right', 10, 10); yet still error Arrgh… Error: Exception: Image source not readable (in site-artgallerytaube_eu/modules/AvbImage/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php line 302) not sure what to do with it. thanks but no thanks i need to processwire handle it, there will be over 1000 images and continuing to grow every day, and i want to make it work now and not bother with it never again. but yeah with unix scripts is easy as pie with imagemagick but i want it plainly php or somewhint to do with PW i really like your plugin actually wanted to try it out but only found docs for pim1 and not pim2, arent there many syntax differences? i might try it out just because avbImage is doing me naughty
  7. ok but like what is this, is this like PHP framework? i never used frameworks, how do i include it ? damn
  8. so hello i am trying to combine my whole ass gallery with custom created watermark, i wanted to combine my images with simple text little opaque but that seemed harder and i couldnt make it work, well i cant make this work either, how are you handling watermarks? i would prefer if it would be plain PHP no imagemagick or some custom plugins scripts, but if neccesary i wont deny. so here's my code $pa = $pages->find("template=basic-page|art_gallery, images.tags!=''"); /* $pa = $pages->find("has_parent!=2,id!=2|7,status<".Page::statusTrash.",include=all"); */ echo "<div BRUUH class='row gtr-50 gtr-uniform js-filter' id='gal' >"; foreach ($pa as $p) { foreach($p->images as $image) { $obrazok = $image->url; $image = imagecreatefromjpeg($obrazok); $frame = imagecreatefromjpeg($pages->get('/settings/')->watermark->url); /* echo $image; echo $frame; */ # If you know your originals are of type PNG. imagecopymerge($image, $frame, 0, 0, 0, 0, 50, 50, 100); # Output straight to the browser. $img = imagepng($image); $options = array('quality' => 70, 'upscaling' => true, 'cropping' => 'center', 'sharpening'=>'medium'); $thumb = $img->size(400, 300, $options); $large = $img->size(1200, 0, $options); echo "<div class='$image->tags' class='col-4'>"; echo "<span style='overflow:hidden;'class='image fit'>"; echo "<a href='$large->url'>"; echo "<img class='uk-transform-origin-top-right' uk-scrollspy='cls: uk-animation-fade; repeat: false' src='$thumb->url' alt='$image->tags'>"; echo "</a>"; echo "</span>"; echo "</div>"; } };
  9. Hello there comrades 1. so after working with padloper, i am not sure if its even proper eshop module, like i still dont know how to add normal creadit card payment with bank gate, and by bank transfer, either plugin is undevelopted or their wiki lacks information, i also didnt found any option to add more shpping methods, in wiki they used shippingFixed Module which just lets me set a one fixed price for shipping, but i need to have more options as personal pick up from eshop, delivery by courier, or delivery by postal service, i dont know how to make any of these options, is this even professional eshop module ? or snipcart is way to go ? 2. i am also fighting with this error Fatal Error: Uncaught Error: Call to a member function getCart() on null in site/templates/_head.php:34 with this code $padloper = $modules->get("Padloper"); $cart = $padloper->getCart(); echo $cart; i am trying to somehow get page's cart price, and echo it next to cart button, i dont understand why there isnt more avalaible API in the web, how do i do this
  10. so after working with padloper, i am not sure if its even proper eshop module, like i still dont know how to add normal creadit card payment with bank gate, and by bank transfer, either plugin is undevelopted or their wiki lacks information, i also didnt found any option to add more shpping methods, in wiki they used shippingFixed Module which just lets me set a one fixed price for shipping, but i need to have more options as personal pick up from eshop, delivery by courier, or delivery by postal service, i dont know how to make any of these options, is this even professional eshop module ? or snipcart is way to go ?
  11. So what i am looking for is when you order a product you can type in how many quanitys you want to add to your basket so far i have it like this if ($page->variations->count) { $content .= "<form method='post' class='padloper-cart-add-product' action='" . $config->urls->root . "padloper/add/'>"; foreach ($page->variations as $p) { $content .= "<input type='radio' name='product_id' value='{$p->id}'>" . $p->color->title . " " . $p->size->title . "</input><br />"; } $content .= "<input type='submit' name='pad_submit' value='" . __("Add to cart") . "' /></form>"; } else { $content .= $modules->get("PadRender")->addToCart(); } echo $content; but i am not sure how do i tell padloper's API to usee that inputed number to add correlating quanities simply adding <input type='number' name='quantity' min='1'> didnt worked EDIT: nevermind i just had to edit name="quantity" as name='qty'
  12. well i was unable to fix it, so i just created product--variatons template and just created there back button and done
  13. so i have problem mentioned in the title i have one product its a page using product template, all variations are using variations template, i have few variation but on site when i click add to cart i go from /products/table to products/table/red which results in 404 error page not found, because variations dont have template files, sooo what's going on? how do i redirect it somewhere else, like cart maybe? or just refresh page with some text like product has been added
  14. Hello so am trying to make a hook so that all checkbox field is defaul;ty checked when making new page, soo i made hook in init.php and the contents are <?php $wire->addHookAfter("Pages::added", function($event) { $page = $event->arguments(0); // check for page template if necessary here $page->checkboxfield('check', 1); }); ?> and what i get which is weird because "table" is a repeat field where checkboxfield is nowhere present, but table repeat field and checkboxfield are in the same template, so why does it outputs error like that? any ideas ?
  15. Hello so i am unable to get to cart/checkout menu , not sure how you even set it up, in the guide it just happend with no setup so what i got it is that i press submit after selecting product, and then it said that item is out of stock even tho i have 50 quantiny in the page, so i enabled negative stock so i could test this out and its weird after submit with negative stock i enabled i get this in the url localhost/vsetky-produkty/black2/?productId=1065&variationId=0&qty=1&totalQty=8&numberOfTitles=4&totalAmount=0 but nothing in the page changes ? where is the next step, next step in the official website is payment modules
×
×
  • Create New...