Jump to content

horst

PW-Moderators
  • Posts

    4,085
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by horst

  1. <maybe-this-helps>http://processwire.com/talk/topic/4096-how-to-translate-text-containing-html-tags/#entry40116</maybe-this-helps>
  2. De nada!
  3. @Wanze: they have wide support for HTML and CSS: http://processwire.com/talk/topic/4338-how-to-include-mpdf/#entry42512 and also using different fonts is easy. Don't know TCPDF, but have read there docs and can't remember of such wide support for CSS / HTML. ?
  4. @Manol: that's a good find. They have wide support for HTML and CSS and also using different fonts is just a snap.
  5. @WillyC: thanks for pointing to it. without maybe I could forget the varied features of the forum software (SCNR)
  6. Pete, at the "New content" view the button hasn't the pid of the post in the link-href like it has it in all other forum sections. (... &section=findpost&pid= )
  7. Note: when I try use the filter, I don't get PW with: /dir/cms/free/php/ only with: /dir/cms/open-source/php/ There are other open source cms also listed with the free filter, PW not. Why?
  8. You can set set_time_limit(30); within the foreach-loop. That way you have higher settings only with that script, not with the whole server. EDIT: If you need for what ever reason a check you can do it at your own: $start = time(); $maxallowed = 600; foreach($somethings as $something) { // ... your code set_time_linit(10); // reset the countdown for every loop! if(time() > ($start + $maxallowed)) { // check the max executed time of the script // break or exit or whatever } }
  9. Yeah, I remember back 15 years or some more, - we have compressed very large images with jpeg quality 1 to a minimum filesize and have send it per Email to recipients where the needed RAM of the uncompressed image was higher than their available system memory!
  10. @MadeMyDay: I think filesize doesn't matter, like owzim said: important is the needed RAM for the uncompressed image. @owzim: I think you are right (to 95%), but the timeout can matter too. EDIT: @MadeMyDay: PHP: settings for post_max_size & upload_max_filesize can be an option! (If the customers / clients and their coworkers ignore advise, you have to push them harder!)
  11. @MadeMyDay: ok, you may look here and try it if it solves your issues too: http://processwire.com/talk/topic/3718-lots-of-images-to-resize-timeout-in-frontend/?p=36291 (this post and above) Also have edited first post! (php memory usage!)
  12. Hi MadeMyDay, you can define allready a max size for uploaded images in the admin for the (crop)-images field under setup fields (your image field) input: This way there is only one resize with the big image version. Following resizes are faster. EDIT: Additionally you may try to bump up the allowed memory usage for php to 128MB or 256MB: in htaccess: php_value memory_limit 128M or 256MB
  13. Other then in imagemagick, i don't see a ton of functions and filters in there I think to autoadjust something there is always a portion of guessing with it - or 'out-rider' pixels that screw up or down the autoadjusted result into false directions. I never use such tools without a manually visually control. Also with captureOne and photoshop I do not use those with batch editing.
  14. A bit Very bizzare! - So, if he (the author of json.org) doesn't know: what maybe good for one maybe evil for another one at the same time.
  15. @soma: I think not seriously. (I haven't heard of that.) https://www.google.com/search?q=gd+php+autoadjust%3F
  16. hoi, there are now two 'unplanned' additions in the Version 0.0.5: canvas($width, $height, $bgcolor, $position, $padding) $width = mixed, associative array with options or integer, mandatory! $height = integer, mandatory if $width is integer! $bgcolor = array with rgb or rgba, - default is 255, 255, 255 $position = one out of north, northwest, center, etc, - default is center $padding = integer as percent of canvas length, - default is 0 unsharpMask($amount=100, $radius=0.5, $threshold=3) // its the same like the method in Photoshop, credit goes to: Torstein Hønsi for the unsharp mask algorithm (created in 2003 - p h p U n s h a r p M a s k)! ..., can create better results than the default stepResize!
  17. @diogo: width & height & BG as rgba is ok! But for what is x- and y-position? I have thought one want to center it into the canvas. If you think it make sence to position out of the center, I think it could be better to use the north, northwest, center, etc position and a $padding (I would prefer in percent), that would be most consistent way with other methods. What do you think?
  18. Oh no, - so - for what is the ->rename() method useful ?
  19. Hi diogo, if you believe it or not, I have thought about this allready. And I have something like this in an old image lib of mine. I will look at that code and port it to the IM. I think best way is to define dimensions of a canvas in that the previous created image is centered. That way one can get only the horizontal or only the the vertical bars, or surrounding ones.
  20. I think it also could be a bit shorter because of the $image->rename() method: $old_name = 'lizard.jpg'; $new_name = 'wizard'; $p = $pages->find("image.data=$old_name")->first; $p->of(false); // outputformatting off, single and multiple image fields are from now on wire array's // get the image and the extension $page_image = $p->image->first(); $ext = $page_image->ext; // pathes and old file basename aren't needed because we cannot leave the pages assets directory! $newFilename = $new_name .'.'. $ext; // only rename, copy and remove isn't needed $page_image->rename($newFilename); $p->save(); only written in browser, not tested, but should work, i think. EDIT: Have now tested and I'm afraid too: - it doesn't work!
  21. with a pageimage loaded into the {Pageimage} {Manipulator} you are not able to overwrite the original! You have to use the {Image} {Manipulator} manually with a filename. Here you can do everything you want, - or the opposite: you alone are fully responsible for _all_ actions, ;-) $pim = $wire->modules->get('PageImageManipulator')->imLoad($imageFilename, $options); // here it is used imLoad = image manipulator instead of page image manipulator If you do not specify an alternate filename or outputFormat with the options array, the sourcefile loaded into the IM is overwritten by default! Note: if you overwrite your original image, you wipe out all EXIF-data, whereas all IPTC-data is kept! ------------- Hey Soma, it looks like you are building a visual Photo-Editor based on PW. cool!
  22. and what is the output from: var_dump( $img->pimLoad("bright")->getImageInfo() ); // what is the output here
  23. @soma: does the imageSizer work with the images? $img->width(240) or $img->size()
  24. hhm, very mysterious. When I use your code I get a new image! I assume you have get the latest version of the module, tried a new install already? What do you get when you use: $p = wire("pages")->get(1111); $img = $p->image; echo '<p>' . $img->url .'</p>'; echo '<p>' . $img->width(240)->url .'</p>'; // does the imageSizer work with that image? echo '<pre>'; var_dump($img->pimLoad("bright")->getImageInfo()); // what is the output here echo '</pre>';
×
×
  • Create New...