Jump to content

chrizz

Members
  • Posts

    125
  • Joined

  • Last visited

Everything posted by chrizz

  1. I have had the same problem some days ago... Is you example a JPEG image? I switched from JPG to PNG and the results of quality are significant better! Unfortunately Photoshop does a much better job than GD does. While the original png (1024px) has a size of about 300 KB a resized version down to 721px needs 570 KB. I'll try to use IM next time or as mentioned above: Resize all images in Photoshop (which is not the solution I would prefer since PW has such cool functions
  2. hm... but in fact this means that I can't use any GD lib resize functions... How do you handle this? PNG does not contain EXIF data, JPG is too lossy. Any ideas?
  3. thanks for the links and your input. I have found another example. Perhaps somebody can take a look at the folloing two images. For me they are different (tested on different PCs, monitors, etc.). The resized one is more sharpened, the watermark is much stronger (looks like shadowed) and the dark area on the left side has lost some of it's gradient: Original: http://www.lange-belichtung.com/site/assets/files/1240/moos-und-raureif-1240.jpg Resized: http://www.lange-belichtung.com/site/assets/files/1240/moos-und-raureif-1240.721x0.jpg Actually the second one has the same dimensions as the original but it demonstrates the differences in quality between both pictures. The only thing I did was: $original_image->width(721, array('quality' => 100)) @horst: sorry, for this missunderstanding. I don't want to say that PW resizes images in poor quality (other images are brilliant), but I saw your name in the code, so I thought: Ask horst, perhaps he have an explanation thanks everyone
  4. Hey everybody, especially @horst I just realized that some of my picture suffer from a poor color quality... Examples: poor resized thumb http://www.lange-belichtung.com/site/assets/files/1212/zwei-kraene-1212.0x347.jpg original: http://www.lange-belichtung.com/site/assets/files/1212/zwei-kraene-1212.jpg My question/approach was: What causes the loss of quality when using the automatic PW resize method. My solution: In ImageSizer.php I commented out "imagegammacorrect" in line 247 & 387. Now the quality is much better than before. I know that core hacking is not the solution more likey it's another problem :/ So my question is: Why do you use gamma correction? Thanks! Chris
  5. thank you very much for your positive feedback! I'll expand the spaces between the rows in the contact form as soon as possible. And Horst, yes, images are international but unfortunately meta descriptions etc are not, but a multi language site is a possible new project for my PW-to do list
  6. First of all: Thank you for all you support during the last month! It took some time but finally my new website is online: http://www.lange-belichtung.com/ It is my first site running PW and I would like to thank for this real alternative to MODx To understand PW I decided to build my own gallery script for easily managing images. Some facts: - using EXIF data to prefill necessary fields (e.g. title, meta description, alt tag, etc) - keeping an original (non-resized) image and adding a "canonical-link" for every smaller copy to reference the original - some images are availabe as wallpaper in different resolutions + resolution recommendation based on your monitor ... I hope you will like it even it is only in German language.
  7. I just found this module (just for getting an idea of this module, fieldtype, inputfield stuff) https://github.com/marcostoll/processwire-search-engine-referrer-tracker/blob/master/SearchEngineReferrerTracker.module This seems to me as if it is an implementation like you mentioned. Perhaps somebody can verify these statements - I don't need a fieldtype as long as I don't want to add "custom stuff" to a page - If I use a custom fieldtype I need a custom Inputfield for this or define in the fieldtpye class which inputfields can be used - A custom DB table has no requirements except it should be installed through a module So if I don't want to configure my module in the admin I can start like this ErrorLogger extends WireData implements module and the only necessary methods are getModuleInfo, init, install, uninstall + at least one method which writes data to the database and hooks the 404 event a lot of stuff but I think that I will now see a light thanks!
  8. hello everyone! I'm a little bit confused with fieldtypes and input fields. What I want to do is to store 404 errors in a table in my database. I think I need a new fieldtype for this, BUT: does every fieldtype require a inputfield? Is there any example for a minimum fieldtype with only the required methods? I took a look the the events module by Ryan but in my case this is much more than I ever need for my "error logger". Anny suggestions, help, links and so one are welcome! thanks a lot! Chris
  9. Hey there, I just updated PW from 2.3 to 2.4 Everything works fine but: On my contact page which mainly followed this article by soma (http://processwire.com/talk/topic/2089-create-simple-forms-using-api/), the submit button show a lable which is not necessary. If tried a lot to remove it but until now I have no better solution than hide the label with CSS. Is there a method to hide labels automatically? thanks
  10. whooop.... now I'm using the new GA as well... The documentation for the new event tracking can be found here: https://developers.google.com/analytics/devguides/collection/analyticsjs/events I don't know, if it works as expected
  11. Hey topada, have you read this post by Google? https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide As far as I remember you only should call something like this to trigger an event: _gaq.push(['_trackEvent', 'Videos', 'Downloaded', 'Gone With the Wind']); I don't know if this project uses the actual GA lib, but somehow event tracking is working here http://www.ansegeln-berlin.de/ansegeln/unterhavel/ Take a look at the print functionality. The event is trigger in the JS file here http://www.ansegeln-berlin.de/assets/templates/ansegeln-berlin-v1/js/jquery.custom.js These events show up in my GA account as expected. I hope this will help you
  12. How do you include your assets? Relative or absolute paths? Have you tried using base href? Otherwise take a look at site/config.php You can add your own config variables an use them everywhere (e.g. in a template wire('config')->yourVariable)
  13. @kongondo: yeah, that's what I meant with "as far as I know PW...". everything else would have surprised me
  14. I would create an AJAX service which returns the JSON you need for your timeline. This script is called by your timeline to load more data. Within the script itself I would use $pages->find('whatever you need here'), iterate through the items and build the JSON in the format you need it (e.g. switch/case by entry type) As far as I know PW I think there will be a possibility to paginate with $pages although I couldn't find anything in the documention. Perhaps you can try something like this: $pages->find('template=blog|photo|whatever, limit=10, offset=10')
  15. thanks so much guys! I thought placing it in templates would be the off the track. Thanks for bringing light into darkness and thanks for the code examples!
  16. Sorry for this confusing headline - I guess it's too late for thinking about this anymore What I want to do: On a certain page (with a separate assigned template) I want to read some directories from the server and show the contents of the directories on the page. Now I'm a bit confused where I should place the code the most suitable way First idea: just place the code into the template. => sounds easy but not "cool" Second idea: Write a module, hook the render method and place the code in the module => initializing a module on every page which is only needed on one single page seems oversized Third idea: Ask the specialists in the forum => in every case a good solution I hope somebody can clarify this and can give me a hint how to solve this problem the "right way". Thanks in advance! Chris
  17. kongodo, I have never tested it, but in my personal opinion PW seems to be much faster than MODx
  18. Hello together! I am working on a new site with pw. It is just a little gallery site. In the past I used MODx for this but since version 2 (Revolution) this CMS is pretty oversized and extremly slow. So I decided to give it a try with pw. So far so good. On my local dev environment a basic page needs about 1.1s to get delivered by the server (only html). A short and superficially check (= end_ts - start_ts) has shown that "new Processwire()" took approx. 1s. Is this a "normal" loading time or is there any space for performance improvements. Imho 1s seems a little long... :/ Thanks guys! Chris #UPDATE well... next time I should dig a little deeper: It is a documented problem within MySQL. Mysqli needs about 1 second to connect to the database: http://www.borngeek.com/2011/04/05/mysql-performance-and-localhost-performance/ A switch from dbHost = 'localhost' to '127.0.0.1' fixed this problem.
  19. hi everybody! I am a little bit confused about the usage of the "trackChanges" method. I use Hanis Select (aka Dropdown) fieldtype and I want to set a default value for a page. But: how do I track changes, when using the API? I have a form where I set trackChanges to true. Afterwards I edit a form field (Hani's select) and set "trackChange($fieldname)". When I save the page there is no change tracked and the field won't be saved... So my question: Is there any tutorial which explains the usage of trackChanges? thanks in advance!
  20. hey guys, I just found this plugin. Great work. It saved some time to code some sitemaps on my own! I'm currently developing my site on a windows platform. After installing the plugin I got a weird error message: Error: Exception: Unknown Selector operator: '' -- was your selector value properly escaped? After some debugging I found out that this seems to be an issue with directory seperators on windows machines. I just added 3 lines of code to fix this problem for me. I don't know if anyone else suffers from this windows... ehh... bug, so here's what I added (in Line 42, after setting $startpage): if(DIRECTORY_SEPARATOR == '\\' && $startpage == '\\') { $startpage = '/'; } Perhaps this will help someone else with same problems Cheerio & thanks!
  21. sorry for this late reply. Thanks a lot for this links. I found a lot of useful things (as you expected, I guess) to understand PW. Although the ImagesManager and the Manipulator are really cool I decided to code something on my own - not because I don't like the modules but for a better understanding. So after some long nights I have my own admin pages which can manage uploads (with watermarks) and creates pages etc... The next step will be creating some templates. Perhaps I'll ask someone, something again thanks again, Chris
  22. Hi everyone, I'm new to PW and the last days I spent a lot of time to understand the concept behind. As far as I get it, I can truely say: "WOW, that's great!" BUT - and thats the point I glad that there's a very cool forum as well - I'm dealing with a problem which seems very easy, but until now I did not find any solution. I want to build a small gallery. For a single gallery page the user can only upload one image. I started to build my own process (adding, page, upload image, enter some text, etc) but then I read about hooks. The only reason building an own "gallery management" is the control over the image: - every uploaded image should be stored in a special folder - the image filename should be identical with the page title - every image contains a watermark Each above requirement is not that problem when using a induvidual process but I want to take advantage of the given inputfields and I don't want to clone the page add/edit functionality. So I started to work on the helloworld.module to add a hook when uploading an image via AJAX. So far so good, but I have no clue how to manipulate the uploaded image before it is processed by the regular upload methods and added to the page. I would be very glad if someone can give me a hint for this. Thanks in advance! Chris
×
×
  • Create New...